Use Popen To Execute A Powershell Script In Python, How Can I Get The Powershell Script's Output And Update It To Web Page?
I create a simple HTML with a button. When user clicks the button, it will call a Python file executed in server side. In the Python file, I use Popen to call a Powershell script,
Solution 1:
Is it perhaps possible to use the stdout
argument to subprocess.Popen
?
I mean something like:
retcode = subprocess.Popen(args, stdout=sys.stdout)
Post a Comment for "Use Popen To Execute A Powershell Script In Python, How Can I Get The Powershell Script's Output And Update It To Web Page?"