Relative Content

Tag Archive for pythonsubprocess

Unexpected behavior of msmtp with subprocess

I want to send emails from my python code calling msmtp using subprocess. Some of the emails are longish (maybe a few kB’s, but not insanely long). The following code works fine with maybe 10 lines of email, but with any more than that then the email is sent Ok with correct subject but no body text at all.

Unexpected behavior of msmtp with subprocess

I want to send emails from my python code calling msmtp using subprocess. Some of the emails are longish (maybe a few kB’s, but not insanely long). The following code works fine with maybe 10 lines of email, but with any more than that then the email is sent Ok with correct subject but no body text at all.

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?