How to run a background process with Python
The key to run a background process is not create an action that depends of the result of the process.
For example, this won't work:
p = Popen(['ls', '-R', '/'], stdout = PIPE, stderr = PIPE)
But this will work:
p = Popen(['ls', '-R', '/'])
Written by emi420
Related protips
1 Response
What about if you do want to write to the new process's stdin?
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Related Tags
#python
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#