fork download
  1. #!/usr/bin/env python
  2.  
  3. from subprocess import Popen, PIPE
  4.  
  5. p = Popen("./prompt.py", stdin=PIPE)
  6. p.stdin.write("hello world")
  7.  
Runtime error #stdin #stdout 0.11s 11568KB
stdin
Standard input is empty
stdout
Standard output is empty