RSS

Setting CronJobs

20 Mar

This is the pattern for cronjob setting on linux server:

Minute Hour Day-of-Month  Month-of-Year  Day-of-Week   Command

0 0 * * * D:/xampp/php -q D:/xampp/htdocs/dolfin/periodic/cmd.php
(every day)

*/10 * * * * D:/xampp/php -q D:/xampp/htdocs/dolfin/periodic/notifies.php
(every 10 mins)

* * * * * echo “This is an example of cron command”
(execute after every minute)

0 18 * * * sh /home/user1/take_backup
(take_backup at 6:00 PM every day)

10,30,50 9-18 * * 1-6 cp /home/user1/display
(every day from MON to SAT display execute every 20 mins from 9:00 AM to 6:00 PM)

Advertisements
 
Leave a comment

Posted by on March 20, 2008 in Uncategorized

 

Tags: , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: