472,093 Members | 2,507 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,093 software developers and data experts.

Auto run/Timer

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
2 1697
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
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.

Similar topics

9 posts views Thread by Dayne | last post: by
3 posts views Thread by John | last post: by
5 posts views Thread by PawelR | last post: by
5 posts views Thread by Khurram Hanif | last post: by
4 posts views Thread by EdB | last post: by
3 posts views Thread by =?Utf-8?B?Y21lZWsxXzE5OTk=?= | last post: by
6 posts views Thread by Peter | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.