Today I need to comment out a line in crontab in order to do a depolyment.
After I changed crontab, I found I could't save the crontab with error message:
After I changed crontab, I found I could't save the crontab with error message:
30 4 * * 7 /usr/bin/rm /opt/SUNWexplo/output/*gz ; /opt/SUNWexplo/bin/explorer -d /etc/opt/SUNWexplo/default/explorer
crontab: error on previous line; number out of bounds.
crontab: errors detected in input, no crontab file generated.
Something is wrong with 30 4 * * 7, the last number means weeks, you can choose a number from 0-6 , 7 is out of bounds.
I guess the guy modified crontab file directly instead of crontab -e and made a mistake.
I changed 7 to 0 and issue fixed.
Something is wrong with 30 4 * * 7, the last number means weeks, you can choose a number from 0-6 , 7 is out of bounds.
I guess the guy modified crontab file directly instead of crontab -e and made a mistake.
I changed 7 to 0 and issue fixed.
No comments:
Post a Comment