469,592 Members | 1,815 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,592 developers. It's quick & easy.

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 1649
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
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.