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]