Cameron Simpson wrote:
Use of the popen functions is generally discouraged since being
deprecated for the subprocess module.
Look at the subprocess module which will allow you to run processes and
capture the output. The docstrings have good examples for how to use it.
On 25Jul2008 11:34, Johny <python@hope.cz wrote:
| Is there a way how to find out running processes?E.g. how many
| Appache's processes are running?
>
See the popen function and use the "ps" system command.
>
| Is there a way how to find out running processes?E.g. how many
| Appache's processes are running?
>
See the popen function and use the "ps" system command.
>
deprecated for the subprocess module.
Look at the subprocess module which will allow you to run processes and
capture the output. The docstrings have good examples for how to use it.