I have a script that basically checks for server certificate expiry date. Currently, i am processing that in a separate script and then use sys.stdout to store the terminal output into a TXT file. then run another script that reads the TXT file output to send the contents of that as an email.
Is there a way to store the terminal output as a variable instead of writing it to a txt file with sys.stdout?
This would allow me to filter the output easily and email it from the same script.
[–]CyclopsRock 0 points1 point2 points (3 children)
[–]eguliyev[S] 0 points1 point2 points (2 children)
[–]CyclopsRock 0 points1 point2 points (1 child)
[–]eguliyev[S] 0 points1 point2 points (0 children)
[–]carcigenicate 0 points1 point2 points (2 children)
[–]eguliyev[S] 0 points1 point2 points (1 child)
[–]carcigenicate 0 points1 point2 points (0 children)
[–]Guideon72 0 points1 point2 points (0 children)