Top "Popen" questions

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

Opening a process with Popen and getting the PID

I'm working on a nifty little function: def startProcess(name, path): """ Starts a process in the background and writes a …

python subprocess popen
Why does Popen.communicate() return b'hi\n' instead of 'hi'?

Can someone explain why the result I want, "hi", is preceded with a letter 'b' and followed with a newline? …

python subprocess popen
Python: subprocess and running a bash script with multiple arguments

How do I go about running a bash script using the subprocess module, to which I must give several arguments? …

python bash arguments subprocess popen
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
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
Python subprocess.Popen() wait for completion

I am writing a small script to serially walk through a directory and run a command on the subdirectories therein. …

python subprocess popen
how to call a program from python without waiting for it to return

is there a way to call a program from python without waiting for it to return? i created a script …

python command subprocess popen
Python: Using popen poll on background process

I am running a long process (actually another python script) in the background. I need to know when it has …

python python-3.x popen subprocess
Run background process in Python and do NOT wait

My goal is simple: kick off rsync and DO NOT WAIT. Python 2.7.9 on Debian Sample code: rsync_cmd = "/usr/bin/…

python subprocess background-process popen