title: subprocess.Popen for loop output
body: <p>Code:</p>
  
  <pre><code>with open ('Client.txt','r') as Client_Name:  
      for Client in Client_Name:  
          out = subprocess.Popen(['script.sh', '-byclient', Client], stdout=subprocess.PIPE)   
          outputstring = out.communicate()  
          print (outputstring)
  </code></pre>
  
  <p>This code doesn't give the output, I want to pass the client names in <code>Client.txt</code> file to <code>script.sh</code>. Any suggestions please.</p>