Relative Content

Tag Archive for pythonsubprocess

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?

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.