Top "Popen" questions

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

Reading/writing to a Popen() subprocess

I'm trying to talk to a child process using the python subprocess.Popen() call. In my real code, I'm implementing …

python subprocess popen python-2.6
Can popen() make bidirectional pipes like pipe() + fork()?

I'm implementing piping on a simulated file system in C++ (with mostly C). It needs to run commands in the …

c fork pipe popen dup2
Python: How to read stdout non blocking from another process?

During the runtime of a process I would like to read its stdout and write it to a file. Any …

python stdout popen
Launch a totally independent process from Python

I'm trying to launch a completely independent process from python. I can't use something simple like os.startfile since I …

python windows-installer popen
popen() alternative

My question is extension of this one: popen creates an extra sh process Motives: 1) My program need to create a …

c exec process popen
How to achieve desired results when using the subprocees Popen.send_signal(CTRL_C_EVENT) in Windows?

In python 2.7 in windows according to the documentation you can send a CTRL_C_EVENT (Python 2.7 Subprocess Popen.send_signal …

python windows subprocess popen keyboardinterrupt
Python 'return not' statement in subprocess returncode

I just came across a very strange line of code in Python: .... self.myReturnCode = externalProcessPopen.returncode .... .... return not self.myReturnCode .... …

python return subprocess popen return-code
How to get environment from a subprocess?

I want to call a process via a python program, however, this process need some specific environment variables that are …

python windows subprocess environment-variables popen
Python Popen().stdout.read() hang

I'm trying to get output of another script, using Python's subprocess.Popen like follows process = Popen(command, stdout=PIPE, shell=…

python subprocess stdout popen freeze
Creating fstream object from a FILE* pointer

The well known way of creating an fstream object is: ifstream fobj("myfile.txt"); ie. using a filename. But I …

c++ popen ifstream