Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = subprocess.call(['bash'])
- p0 = subprocess.Popen(cmd, stdout=subprocess.PIPE)
- p1 = subprocess.Popen(['bash'], stdin=p0.stdout)
- $ bash
- $ cmd1
- $ cmd2
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement