Check if subprocess is waiting for screen input

  Kiến thức lập trình

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?

2

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT