How to set up cron job for Linux server?

Hits: 473

Note:- The cron set up remains same for centos and ubuntu.

  • Install wget in your server
  • Open the cron console by the below command:-

crontab –e 

  • Add the required cron funtions.

0 23 * * * wget -O /dev/null http://localhost/cron/email_notification

*/15 * * * * wget -O /dev/null http://localhost/cron/dailyupdate_notifications

*/15 * * * * wget -O /dev/null http://localhost/cron/dailyUpdateMail

*/30 * * * 1-5 wget -O /dev/null http://localhost/cron/weeklyusagedetails

0 21 * * 1-5 wget -O /dev/null http://localhost/cron/InvoiceWeeklyAlert

0 20 * * *  wget -O /dev/null http://localhost/cron/InvoiceDuedateAlert

30 21 * * * wget -O /dev/null http://localhost/cron/autoGenerateInvoices

30 22 * * * wget -O /dev/null http://localhost/cron/createRecurringTasks

*/15 * * * * wget -O /dev/null http://localhost/cron/caseStartReminder

0 19 * * * wget -O /dev/null http://localhost/cron/startDateTaskReminder

30 19 * * * wget -O /dev/null http://localhost/cron/update_email

* * * * * wget -O /dev/null http://localhost/EmailReply.php

NOTE:- Replace your orangescrum URL in place of http://localhost/

 

Like(0)        Dislike(0)