By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,001 Members | 1,176 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,001 IT Pros & Developers. It's quick & easy.

Auto run/Timer

P: n/a
Hello,
I would like my script to run once a week with out any external
interference.
More like a timer. Can it be done in python or should some other shell
scripting be used.
If anyone knows anything please let me know.

Aug 4 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Sat, 04 Aug 2007 08:27:05 +0000, Rohan wrote:
Hello,
I would like my script to run once a week with out any external
interference.
More like a timer. Can it be done in python or should some other shell
scripting be used.
If anyone knows anything please let me know.
`cron` should be your way to go, IMO. `/etc/cron.weekly/` might be a
starting point (copy your script into this directoy).

And, yes, it can be done using pure Python (but I wouldn't do it). See
`threading.Timer <http://docs.python.org/lib/module-
threading.html#l2h-3422>`_.
Aug 4 '07 #2

P: n/a
Rohan wrote:
Hello,
I would like my script to run once a week with out any external
interference.
More like a timer. Can it be done in python or should some other shell
scripting be used.
If anyone knows anything please let me know.
Have a look at my 'kronos' task scheduler, available from:
http://www.razorvine.net/downloads.html

Things like this do require a Python process to be running all the time,
for obvious reasons. If you don't want that, you'll have to use a task
scheduler tool that your operating system provides (cron, for instance).

--irmen
Aug 4 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.