LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-14-2010, 08:46 AM   #1
krojther
LQ Newbie
 
Registered: Oct 2009
Posts: 20

Rep: Reputation: 0
Time-controled execution


Dear all,
I am trying to find a way to execute a python script in regular time intervals?
How can I do it?
Thanks
 
Old 01-14-2010, 09:18 AM   #2
Infiltrator
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Rep: Reputation: 0
You can use cron to do it.

Simply run crontab -e as your user.
Edit the file to say something similar to
Quote:
# m h dom mon dow command
0 * * * * /path/to/script
Such a crontab would cause /path/to/script to be run every hour (at 0 minutes) as your user.
 
Old 01-14-2010, 05:54 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,412

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Here's what he said in more detail: http://www.adminschoice.com/docs/cro...Crontab%20file
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
command execution time minil Programming 10 08-20-2010 05:59 PM
Execution Time Sanjib_Sur Linux - Newbie 3 12-02-2008 02:20 PM
how to find the time of execution anandkj Linux - Newbie 2 12-20-2007 03:27 AM
I want to know the program execution time daggulasreedhar Programming 6 03-15-2007 05:07 AM
how to [time] the execution hq4ever Linux - General 8 07-03-2004 05:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration