Re: [Tutor] Help with daemon

2005-04-28 Thread Max Noel
On Apr 28, 2005, at 23:06, Alberto Troiano wrote: I tried: import os os.system("ps --user root") and I get 0 as a return How can I get the PID and bind the command above with a variable?? I mean varusername="root" os.system("ps --user varusername") works??? So in essence, what you're trying t

Re: [Tutor] Help with daemon

2005-04-28 Thread Alberto Troiano
el <[EMAIL PROTECTED]> To: "Alberto Troiano" <[EMAIL PROTECTED]> CC: tutor@python.org Subject: Re: [Tutor] Help with daemon Date: Wed, 27 Apr 2005 23:38:00 +0100 On Apr 27, 2005, at 22:35, Alberto Troiano wrote: I'm gonna give you an example: The program will check for new u

Re: [Tutor] Help with daemon

2005-04-27 Thread Max Noel
On Apr 27, 2005, at 22:35, Alberto Troiano wrote: I'm gonna give you an example: The program will check for new users and to check record time every 10 seconds. But first the program will have to finish the checking process that started before so it won't be 10 seconds right? Unless I have one pr

[Tutor] Help with daemon

2005-04-27 Thread Alberto Troiano
Hi everyone Again disturbing the peace of the TUTOR :D I'm making an application to check every few seconds for photos uploaded via ftp The users will program their upload time via web page (made in php). The time is saved in a MySQL database so I will check for all the created users if they ar