Pastebin
Paste #469: fork
< previous paste - next paste>
Pasted by Morten
p = Popen([scriptfile], shell=True, stdin=PIPE, stdout=PIPE, close_fds=True)
print "Executing os.dup2"
os.dup2(p.stdin.fileno(), 0)
os.dup2(p.stdout.fileno(), 1)
p.communicate()[0]
New Paste
Go to most recent paste.