[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] [raq2] Any crontab experts?



Do man 5 crontab

you will get the crontab format:

field          allowed values
-----          --------------
minute         0-59
hour           0-23
day of month   0-31
month          0-12 (or names, see below)
day of week    0-7 (0 or 7 is Sun, or use names)

The crontab entry would be (on the hour and half hour, between 0800 and 2300
every day):

0,30 8-23 * * * /usr/bin/perl -w /home/sites/siteX/cgi-bin/script.pl >
/home/sites/siteX/web/news/news.html

To add this to the root crontab "su -" to root,  Do "crontab -e", type in
your entry.  Make sure that the entry has not been broken up with line
feeds.  The etnry must be one line.  If it has have been broken to more than
1 line, do "<ctrl>j" to paste them back together.  I see nothing wrong with
the syntax you used in your post so more than likely you have a line feed in
there somewhere causing crontab to read they entry as _two_ or more entries.

John Burgess
President, Allegro Data Systems
12500 Network, Suite 401
San Antonio, TX  78249
+01-210-558-0709
+E-mail <mailto:john.burgess@xxxxxxxxxx>
+Digital Message <mailto:2102400245@xxxxxxxxxxxxxx>
Fastex.net <http://www.fastex.net/>

-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Tony
Sent: Saturday, January 29, 2000 9:11 PM
To: cobalt-users@xxxxxxxxxx
Subject: [cobalt-users] [raq2] Any crontab experts?


I have a mental block with cron.
What time values & format would I need to put in a crontab file to execute
this command every 30 minutes between the hours
of 8am and 11pm every day of the month?

perl -w /home/sites/siteX/cgi-bin/script.pl >
/home/sites/siteX/web/news/news.html


I had this: 1,31 8-23,0-2 * * * but it gave me a bad day-of-month error.



_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-users