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.

Python popen() - communicate( str.encode(encoding="utf-8", errors="ignore") ) crashes

Using Python 3.4.3 on Windows. My script runs a little java program in console, and should get the ouput: import subprocess …

python python-3.x encoding subprocess popen
Python subprocess Popen.communicate() equivalent to Popen.stdout.read()?

Very specific question (I hope): What are the differences between the following three codes? (I expect it to be only …

python subprocess wait popen communicate
Suppressing output in python subprocess call

For the following command: subprocess.call(shlex.split( """/usr/local/itms/bin/iTMSTransporter -m lookupMetadata -apple_id %s -destination %s"""%(…

python subprocess stdout
What's the difference between escapeshellarg and escapeshellcmd?

PHP has 2 closely related functions, escapeshellarg() and escapeshellcmd(). They both seem to do similar things, namely help make a string …

php shell process exec subprocess
Kill or terminate subprocess when timeout?

I would like to repeatedly execute a subprocess as fast as possible. However, sometimes the process will take too long, …

python timeout subprocess kill signals
What's the best way to duplicate fork() in windows?

How do I implement some logic that will allow me to reproduce on Windows the functionality that I have on …

python windows process subprocess fork
subprocess wildcard usage

import os import subprocess proc = subprocess.Popen(['ls','*.bc'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) out,err = proc.communicate() …

python subprocess wildcard
subprocess: deleting child processes in Windows

On Windows, subprocess.Popen.terminate calls win32's TerminalProcess. However, the behavior I see is that child processes of the …

python windows process subprocess kill-process
link several Popen commands with pipes

I know how to run a command using cmd = subprocess.Popen and then subprocess.communicate. Most of the time I …

python command subprocess pipe popen
python subprocess.call() "no such file or directory"

I've found a few questions on the module but the more common problem seems to be getting the argument list …

python subprocess tcsh