I need to run several subprocess.run in a loop. Most of the time, if the exe called in the subprocess succeed nothing happen. But in some cases, usually when so
While running the following code I'm getting file name too long import subprocess import json data = [{ "id": 1, "first_name": "Janet", "last_name": "Til
I am getting this output from a ping request started from Python with subprocess.run(): >>> process.stdout b"\r\nEnvoi d'une requ\x88te 'ping' sur www.
I'm doing some work on subtitles and some videos have 1 subtitle track, others have 2 subtitle tracks. For those that have 2, I use the 2nd one (index = 1). I'm
I have a C++ program that waits for some text input with getline(), and it works well from the command line. However, I would like to call it from Python - send
I want to use Jupyter-matlab notebooks. I've downloaded Anaconda navigator and followed the steps from this web: http://jmlilly.net/jupyter-matlab Unfortunately
The following command works fine from the CLI: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r /path/coverage.xml When I pas
I was trying to install the dlib package for my face recognition project but error keep getting in the way. This is another error and I don't
I'm trying to make a system call in Python and store the output to a string so that I can process it in my Python program.To be more specific of what i am doing
I'm using subprocesss.run() to run samtools command in python. The code is as below: result = subprocess.run(['samtools', 'faidx', 'hg38.fa.gz', 'chr1:169699712
I have a folder with a few hundred .bed files that I want to loop over to extract fasta sequences. In the terminal, my command is: twoBitToFa -bed=PA2_03_2bit.b
I have a folder with a few hundred .bed files that I want to loop over to extract fasta sequences. In the terminal, my command is: twoBitToFa -bed=PA2_03_2bit.b
I want open a program (ex: calculator) and keep tracking his process as the pid, name, etc. But, after calling the subprocess.Popen(), the process id is killed
When using subprocess.run it's recommended to use check = True (https://pycodequ.al/docs/pylint-messages/w1510-subprocess-run-check.html). However, there might
I have inherited a complicated (to me) toolbox from a PhD student before me and it uses python2 instead of 3 since it's older. The main file is in python2 and u
I have a piece of code that opens a subprocess and writes the output to a file: logPath = '/path/to/some/directory/' log = open(logPath + 'log', 'a') guipid
I have the following snippet of code: def terminal_command(command, timeout=5*60): """Executes a terminal command.""" cmd = command.split("
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
Unhappily my last post was marked as duplicate and my problem wasn't solved. So I've to phrase it a little bit different. Below you can see my main-file(SP_Tes
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('