Page 1 of 1

How to use subprocess to print both in real-time and to log

Posted: Wed Oct 12, 2022 8:10 pm
by Shanmugam
Hi support,
Need your help.
I am trying to call a Powershell script from python, what subprocess i need to use to get it printed both in real-time and log files.
If anyone have a sample file it would help.


Thanks
Shanmugam

Re: How to use subprocess to print both in real-time and to log

Posted: Tue Oct 25, 2022 8:41 am
by PatrickD
Hello,

I'm making a small update to this post because the subject interests me too. If anyone has any suggestions, I'd love to hear them.

Thank you in advance for your help,