January 18th, 2004, 02:10 PM
Auto execute program
Is there a way that I can automatically execute a program at a certain time or something like that from inside the program.
January 18th, 2004, 03:28 PM
January 18th, 2004, 05:23 PM
Using Windows' scheduler or some cron daemon under Linux might be simpler, though, depending on your needs and what's available.
January 19th, 2004, 07:44 AM
I was thinking of having it built in but if there is any other way that I can do it then you can tell me. Thanks
January 19th, 2004, 08:05 PM
April 25th, 2004, 11:53 PM
cron.py doenst work so u know any other programs
April 26th, 2004, 01:00 AM
Cron was tested and worked fine on XP with Python 2.3.3 and was also tested by others - Great if you look at the source for this you will knowtice that you need a config file (named 'cron.txt' in cron.py) to hold the desired 'time system_command' lines.
Just one reason why this didnt work for you.
Unfortunatly i dont have the resources to test this right now since i'm doing a little traveling but if anyone can find a bug in it i'll try and make time to fix it ok .
Last edited by netytan; April 26th, 2004 at 01:03 AM.
April 29th, 2004, 09:41 PM
April 30th, 2004, 09:31 AM
For most cases (and in this one) particular all you need to do is use time.sleep() inside a while loop in order to preform a task every n number of seconds as i sugested in PM i.e.
Hope this clears things up,
do whatever here