LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   help in cron tab (http://www.linuxquestions.org/questions/programming-9/help-in-cron-tab-501799/)

framedrelay 11-15-2006 07:44 AM

help in cron tab
 
I have two programs running on my Linux machine,

1. its a kind of ping program
2. its for sending email.

Both are cron jobs. So, one runs every 15 mins, & the email program should work 3 times a day. So here its my cron tab,

15 * * * * * * /usr/psylvester/ping.sh
* */8 * * * * * /usr/psylvester/mail.sh

Second one, im dividing it by 8 (24/8 = 3 times a day). The problem is, it doesn't work. If i manually run the mail.sh script, i get the email, not via cron.

Reply will be much appreciated.

Regards,
Sylvester.

acid_kewpie 11-15-2006 07:49 AM

you have far far too many *'s there!
Code:

*    *  *  *    *  command to be executed
-    -    -    -    -
|    |    |    |    |
|    |    |    |    +----- day of week (0 - 6) (Sunday=0)
|    |    |    +------- month (1 - 12)
|    |    +--------- day of month (1 - 31)
|    +----------- hour (0 - 23)
+------------- min (0 - 59)



All times are GMT -5. The time now is 08:55 AM.