process

José jmcalvar at telecable.es
Wed May 12 07:41:56 EDT 2004


Thank you, finally I write a pid file when rotatelogs starts, and I 
delete it when it stops, then with isfile() I know if the process is 
working.

Ryan Paul escribió:

>
> 
> 
> I'm not aware of any way to retrieve the process list from python, but you
> might try this:
> 
> import commands
> 
> x = commands.getstatusoutput('ps ax|grep rotatelogs')[1]




More information about the Python-list mailing list