Post Reply  Post Thread 
Setting up "cron" Jobs
Author Message
admin
~CM~
*******


Posts: 147
Group: Administrators
Joined: Jul 2007
Status: Offline
Reputation: 0
Thank 0
2 was given thank in 2 posts
Post: #1
Setting up "cron" Jobs

To edit or create a new cron jobs

Quote:
$ crontab -e


You may want to put in the following header

Quote:
#MINUTE(0-59) HOUR(0-23) DAYOFMONTH(1-31) MONTHOFYEAR(1-12) DAYOFWEEK(0-6) Note 0=Sun and 7=Sun
#
#14,15 10 * * 0 /usr/bin/somecommmand >/dev/null 2>&1


The sample “commented out command” will run at 10:14 and 10:15 every Sunday. There will
be no “mail” sent to the user because of the “>/dev/null 2>&1″ entry.

Quote:
$ crontab -l

The above will list all cron jobs. Or if you’re root

Quote:
$ crontab -l -u
$ crontab -e -u


Thanks & Regards
------------------
~CM~

ADD TO DEL.ICIO.US  ADD TO DIGG  ADD TO FURL  ADD TO NEWSVINE  ADD TO NETSCAPE 
ADD TO TECHNORATI FAVORITES  Technorati ADD TO SQUIDOO  ADD TO WINDOWS LIVE  ADD TO YAHOO MYWEB  ADD TO ASK 
ADD TO REDDIT  ADD TO STUMBLEUPON  ADD TO GOOGLE   

07-25-2007 02:32 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: