Category "popen"

Open (and run) a new Python file by a Python file

I need to run a second python file (2) using a first Python file (1) and I need that the first file continue to be runned. For example: I have the file A.py and

Have subprocess.Popen only wait on its child process to return, but not any grandchildren

I have a python script that does this: p = subprocess.Popen(pythonscript.py, stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=False) theStdin=request.input.encode('

Kivy not opening new window on button press? (Subprocess/Popen, Python)

I am trying to open a new window upon a button press with kivy. However, when I try to open the file with the separate window in it, it simply doesn't do anythi

Change user (su) via Python script (pexpect, popen...)

I am running a Python script with user1 and in this script I need to move a file in a folder for which I don't have access. The folder is owned by user2. What

Python subprocess.Popen() not running command

I'm trying to use subprocess.Popen() to run a command in my script. The code is: output = Popen(["hrun DAR_MeasLogDump " + log_file_name], stdout=subprocess.PI

How to synchronize the output of Python subprocess

I think I'm having issues to synchronize the output of two Popen running concurrently. It seems that the output from these two different command lines are inter