Web Hosting Talk







View Full Version : Crontab problem


certify
08-05-2001, 06:07 AM
I tried to save this ...


0 15 29 * * perl /usr/local/plesk/apache/certifyexpr
ess.com/cgi-bin/adscycle/safe_adcycled
7 3 * * * /usr/local/plesk/admin/utils/statistics
>/dev/null 2>&1




But I keep getting this error?? What is wrong?

[quote]
crontab: installing new crontab
"/tmp/crontab.24350":3: bad day-of-month
errors in crontab file, can't install.
Do you want to retry the same edit?

RutRow
08-05-2001, 10:04 AM
Have you tried commenting out the lines one at a time to see which line is the offender? Both appear to be fine as long as they are listed one per row. How are you editing your crontab?.... `crontab -e` ?

-Rut

certify
08-05-2001, 12:51 PM
Yes 'crontab -e'

This is the initial line


7 3 * * * /usr/local/plesk/admin/utils/statistics
>/dev/null 2>&1


And this is the line i wanted to add.


0 15 29 * * perl /usr/local/plesk/apache/certifyexpress.com/cgi-bin/adscycle/safe_adcycled

wave
08-05-2001, 04:27 PM
I think you need double digits (eg. 00, 07, 03 rather than 0, 7, 3). :)

RutRow
08-05-2001, 04:28 PM
Hmm... I dunno. I put the same line in my crontab and it didn't complain.

-Rut

certify
08-06-2001, 06:32 AM
I'm confused. :confused:

wave
08-06-2001, 03:14 PM
Try these lines:

00 15 29 * * perl /usr/local/plesk/apache/certifyexpress.com/cgi-bin/adscycle/safe_adcycled
07 03 * * * /usr/local/plesk/admin/utils/statistics
>/dev/null 2>&1

certify
08-07-2001, 11:48 AM
Ok. I'' try it tomorrow. :)

certify
08-08-2001, 12:32 PM
It worked wave. Thanks for the excellent tip. :)