I'm trying to piece together some Python code to control UNIX screen processes (/usr/bin/screen) as part of a script to ease on-server deployment. Are there any libraries or modules that could facilitate this? Is there a better way to do this than just using a standard Python subprocess?
We would be using the WMI. Win32_Process function in order to get the list of running processes on the system. Then we called the function WMI. Win32_Process() to get the running processes, iterated through each process and stored in variable process.
Found the solution. There's a Python module called screenutils.
You could use pexpect.
There is also a fork: pexpect-u
I'm not 100% certain there isn't any limitations in pexpect compared to expect, but if you find any you can always try your hand at some tcl :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With