Top "Popen" questions

popen() is a way to communicate with subprocesses using a file-like interface.

Non-blocking pipe using popen?

I'd like to open a pipe using popen() and have non-blocking 'read' access to it. How can I achieve this? (…

c linux pipe popen
Handling tcpdump output in python

Im trying to handle tcpdump output in python. What I need is to run tcpdump (which captures the packets and …

python subprocess popen tcpdump
How to clean up after subprocess.Popen?

I have a long-running python script with a perl worker subprocess. Data is sent in and out of the child …

python subprocess pipe popen lsof
Keep a subprocess alive and keep giving it commands? Python

If I spawn a new subprocess in python with a given command (let's say I start the python interpreter with …

python process popen subprocess
Why does subprocess.Popen() with shell=True work differently on Linux vs Windows?

When using subprocess.Popen(args, shell=True) to run "gcc --version" (just as an example), on Windows we get this: &…

python shell subprocess popen
Python - How to call bash commands with pipe?

I can run this normally on the command line in Linux: $ tar c my_dir | md5sum But when I …

python popen subprocess
c popen won't catch stderr

I'm trying to use popen() to catch the stderr of a call, but of course it doesn't seem to be …

c popen stderr
Python Popen sending to process on stdin, receiving on stdout

I pass an executable on the command-line to my python script. I do some calculations and then I'd like to …

python popen argv
subprocess.Popen() IO redirect

Trying to redirect a subprocess' output to a file. server.py: while 1: print "Count " + str(count) sys.stdout.flush() count = …

python popen
subprocess.call env var

I'm using Popen because I need the env, like this: Popen( ["boto-rsync", "..."], env={"PATH":"/Library/Frameworks/Python.framework/Versions/2.7/bin/"}, ) …

python environment-variables call subprocess popen