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.

Run a program from python, and have it continue to run after the script is killed

I've tried running things like this: subprocess.Popen(['nohup', 'my_command'], stdout=open('/dev/null', 'w'), stderr=open('logfile.…

python subprocess nohup
Python: subprocess with different working directory

I have a python script that is under this directory: work/project/test/a.py Inside a.py, I use …

python subprocess working-directory
What permissions are required for subprocess.Popen?

The following code: gb = self.request.form['groupby'] typ = self.request.form['type'] tbl = self.request.form['table'] primary = self.…

python macos subprocess popen
Running an interactive command from within Python

I have a script that I want to run from within Python (2.6.5) that follows the logic below: Prompts the user …

python subprocess stdout stdin interactive
output the command line called by subprocess?

I'm using the subprocess.Popen call, and in another question I found out that I had been misunderstanding how Python …

python command-line subprocess popen
Python subprocess timeout?

Is there any argument or options to setup a timeout for Python's subprocess.Popen method? Something like this: subprocess.Popen([…

python timeout pipe subprocess popen
Is there a quiet version of subprocess.call?

Is there a variant of subprocess.call that can run the command without printing to standard out, or a way …

python subprocess silent
Python subprocess.Popen() error (No such file or directory)

I am trying to count the number of lines in a file using Python functions. Within the current directory, while …

python subprocess system popen
Cleaner way to read/gunzip a huge file in python

So I have some fairly gigantic .gz files - we're talking 10 to 20 gb each when decompressed. I need to loop …

python gzip subprocess gunzip
Subprocess Variables

1 import subprocess 2 raw = raw_input("Filename:").lower() 3 ip = raw_input("Host:").lower() 4 cmd = subprocess.call("tcpdump -c5 -vvv -w" + " raw " + " …

python subprocess tcpdump