LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-07-2001, 12:32 AM   #1
loocw
LQ Newbie
 
Registered: Feb 2001
Location: Singapore
Posts: 5

Rep: Reputation: 0
Unhappy


Hi,

What is the different between cron and crontab?
How to use cron?
Can someone give me an examples?
wat is the meaning of below example?
*/10 * * * * root /sbin/rmmod -as
I have a perl script that need to be run periodically,
how do i use cron or crontab to do that?
Pls Advice
Thanks

Regards
Kelvin Loo
 
Old 03-07-2001, 10:07 PM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
cron is the daemon that executes scheduled commands. crontab maintains the crontab files for individual users. The example you gave would run the command "/sbin/rmmod -as
" every ten minutes.

The first five fields are:

Code:
 field          allowed values
 -----          --------------
 minute         0-59
 hour           0-23
 day of month   1-31
 month          1-12 (or names, see below)
 day of week    0-7 (0 or 7 is Sun, or use names)
 
Old 03-08-2001, 02:16 AM   #3
loocw
LQ Newbie
 
Registered: Feb 2001
Location: Singapore
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Jeremy,

Thanks for ur reply!!
So if I want to run my file "update.pl" weekly,
How should I write?
Becos, it is a perl script so I will need to run perl program ...... so in the filename side, should I write something like this -> perl update.pl
and the timimg will be -> *****/Mon
so the overall will look like that -> *****/Mon perl /home/kelvin/update.pl
is that correct?

And btw, where should I put this line of code becos my system don't have crontab, instead, it have cron.d, cron.daily, cron.weekly, etc......
Should I activate the CRON command to start running the above code?
Pls advise
Thanks

Regard
Kelvin Loo
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
atq details - cron/crontab nadine.mauch Linux - Software 2 01-03-2005 02:01 AM
Extra cron jobs not in "crontab -e"? inspleak Linux - General 2 07-21-2004 09:47 PM
crontab vs cron.daily ? SheldonPlankton Linux - Newbie 1 07-16-2004 12:10 PM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 12:35 PM
Cron/Crontab Question cmfarley19 Linux - General 2 04-09-2003 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:15 PM.

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
Open Source Consulting | Domain Registration