Check if subprocess is waiting for screen input
I’ve been trying to make a script that automatically installs Pi-hole (website available here), but I just remembered that Pi-hole asks for some screen inputs (e.g., to ask what upstream DNS provider you want to use). This can be navigated using your arrow keys, but I’m just wondering, is there a way currently where you can check if a subprocess is waiting for a screen input like that?
Check if subprocess is waiting for screen input
I’ve been trying to make a script that automatically installs Pi-hole (website available here), but I just remembered that Pi-hole asks for some screen inputs (e.g., to ask what upstream DNS provider you want to use). This can be navigated using your arrow keys, but I’m just wondering, is there a way currently where you can check if a subprocess is waiting for a screen input like that?
How can I suppress the “echo” output?
I would like to output some data in a separated console window on windows.
Looping subprocess command
I’m trying to run a function in an update loop
subprocess generate files in a different location
I have a command line program that reads a file and generate 3 other files.
Lets say the executable name is abc.exe it reads abc.in and generates abc1.out, abc2.out, abc3.out
Python subprocess doesn’t see outside functions
We work on a python package. However silly it might sound, we want a node.js app to be a part of the package (it would be one of the options in CLI). To distribute it smoothly we want the package to automatically install node.js.
I tried nodejs-bin
package but it seems to be old and not working anymore.
The thinking was using Python subprocess
library to do this.
How to run python subprocess with PIPE in parallel?
I’m converting a bunch of SVG images to PNG using inkscape.
Single threaded:
Python subprocess.Popen.communicate() does not wait for the process to complete
On Ubuntu 22, using Python 3.10, I need to set up a VPN connection and analyze the response from the VPN server. I do this as follows:
How can I redirect stdout and stderr of subprocess in python to same file without losing the order
I have a simple script to mimic a program writing to stdout and stderr streams interleaved.
python subprocess modify incoming stream and printing it live
Note: This seems like a solved problem, but I couldn’t find a solution.