Pastebin

Paste #469: fork

< previous paste - next paste>

Pasted by Morten

Download View as text

                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


Do not write anything in this field if you're a human.

Go to most recent paste.