LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-04-2005, 08:13 PM   #1
Slith(++1)
Member
 
Registered: Sep 2005
Posts: 36

Rep: Reputation: 15
Running a script at a certain time...


Can anyone tell me how I can run a script at a certain time / every hour or so? Or have any links that can help me, thanks
 
Old 10-04-2005, 08:23 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,249

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
'man cron'

'crontab -e
m h d m w echo hello-world
#use * for wildcard
 
Old 10-04-2005, 08:29 PM   #3
taureanyang
LQ Newbie
 
Registered: Mar 2005
Posts: 10

Rep: Reputation: 0
Use "cron"
cron starts a process that executes command at specified dates and times.
You can specify regularly scheduled commands to cron according to instructions found in crontab files in the directory /var/spool/cron/crontabs if you are using solaris.

the items in crontab is as below:
* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- (1 - 7) (monday = 1,tuesday=2...)
| | | +------- month (1 - 12)
| | +--------- day (1 - 31)
| +----------- hour (0 - 23)
+------------- minute (0 - 59)
 
Old 10-04-2005, 10:12 PM   #4
Slith(++1)
Member
 
Registered: Sep 2005
Posts: 36

Original Poster
Rep: Reputation: 15
Ok, cheers
 
  


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
Time is running out for me. ccalvin12 Linux - Software 1 08-05-2005 07:18 AM
Newbie question - running a script at boot time Napalm Llama Red Hat 8 04-19-2005 03:11 PM
How to Do the Following? Running Script at Boot-Time + Sending Mail LinuxGeek Linux - General 1 07-20-2004 12:06 AM
Running 2 OS at the same time NeoSpawn Linux - General 18 06-17-2004 05:42 PM
PHP last time modified script time way off GabeF Programming 2 11-05-2002 08:05 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:08 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