Top "Subprocess" questions

The Python subprocess module allows you to spawn new processes, connect to their input/output/error pipes, and obtain their return codes.

How to avoid [Errno 12] Cannot allocate memory errors caused by using subprocess module

Complete Working Test Case Of course depending on your memory on the local and remote machines your array sizes will …

python networking memory subprocess paramiko
python subprocess Popen environment PATH?

I'm confused about how subprocess searches for the executable when using Popen(). It works if given absolute paths to the …

python path subprocess environment popen
Popen error: [Errno 2] No such file or directory

I have some custom commands. # works subprocess.Popen(['python'], stdout=subprocess.PIPE) But if I have my own system commands …

python subprocess popen
Python read file as stream from HDFS

Here is my problem: I have a file in HDFS which can potentially be huge (=not enough to fit all …

python hadoop subprocess hdfs
"subprocess.Popen" - checking for success and errors

I want to check if a subprocess has finished execution successfully or failed. Currently I have come up with a …

python python-3.x subprocess stdout stderr
Blocking and Non Blocking subprocess calls

I'm completely confused between subprocess.call() , subprocess.Popen(), subprocess.check_call(). Which is blocking and which is not ? What I …

python python-3.x python-2.7 subprocess
Python Subprocess: Too Many Open Files

I am using subprocess to call another program and save its return values to a variable. This process is repeated …

python subprocess
Is there a way to check if a subprocess is still running?

I'm launching a number of subprocesses with subprocess.Popen in Python. I'd like to check whether one such process has …

python subprocess
Python3 subprocess output

I want to run the Linux word count utility wc to determine the number of lines currently in the /var/…

python python-3.x subprocess
How to do multiple arguments with Python Popen?

I am trying to make a PyGtk Gui, that has a button. When the user presses this button, gnome-terminal prompts …

python pygtk subprocess popen gnome-terminal