Advertisement
Guest User

Untitled

a guest
Oct 8th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. p = subprocess.call(['bash'])
  2.  
  3. p0 = subprocess.Popen(cmd, stdout=subprocess.PIPE)
  4. p1 = subprocess.Popen(['bash'], stdin=p0.stdout)
  5.  
  6. $ bash
  7. $ cmd1
  8. $ cmd2
  9. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement