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.

subprocess.wait() not waiting for Popen process to finish (when using threads)?

I am experiencing some problems when using subprocess.Popen() to spawn several instances of the same application from my python …

python multithreading subprocess popen
Python - how to execute shell commands with pipe, but without 'shell=True'?

I have a case to want to execute the following shell command in Python and get the output, echo This_…

python subprocess pipe
subprocess.Popen in different console

I hope this is not a duplicate. I'm trying to use subprocess.Popen() to open a script in a separate …

python python-2.7 subprocess popen
Non blocking subprocess.call

I'm trying to make a non blocking subprocess call to run a slave.py script from my main.py program. …

python subprocess
Run child processes as different user from a long running Python process

I've got a long running, daemonized Python process that uses subprocess to spawn new child processes when certain events occur. …

python fork subprocess setuid
Simplest way to run an Expect script from Python

I'm trying to instruct my Python installation to execute an Expect script "myexpect.sh": #!/usr/bin/expect spawn ssh usr@…

python ssh subprocess expect
Passing double quote shell commands in python to subprocess.Popen()?

I've been trying to pass a command that works only with literal double quotes in the commandline around the "concat:…

python subprocess
Python, subprocess, call(), check_call and returncode to find if a command exists

I've figured out how to use call() to get my python script to run a command: import subprocess mycommandline = ['lumberjack', …

python command-line call subprocess file-exists
Use subprocess to send a password

I'm attempting to use the python subprocess module to log in to a secure ftp site and then grab a …

python subprocess sftp
Python, Popen and select - waiting for a process to terminate or a timeout

I run a subprocess using: p = subprocess.Popen("subprocess", stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE) This subprocess …

python select timeout subprocess popen