CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Computer/PC discussions (http://www.codingforums.com/forumdisplay.php?f=20)
-   -   crontab issue (http://www.codingforums.com/showthread.php?t=273368)

Bobafart 09-17-2012 03:40 PM

crontab issue
 
Hi
I have a crontab:

0 6 * * * cd /path/to/file

which is supposed to execute every morning at 6:00

problem is, for some reason, it executes every minute for 60 minutes... strange.

what am I doing wrong? no other crontabs exist pointing to this file

Spookster 09-17-2012 11:33 PM

Quote:

Originally Posted by Bobafart (Post 1270642)
Hi
I have a crontab:

0 6 * * * cd /path/to/file

which is supposed to execute every morning at 6:00

problem is, for some reason, it executes every minute for 60 minutes... strange.

what am I doing wrong? no other crontabs exist pointing to this file

I really don't see anything wrong with what you have but maybe try this?
00 06 * * * cd /path/to/file

Not sure if the missing 0's make a difference. The crontab definition doesn't mention needing 2 digits for those fields but I have see crontabs using 2 verses 1 digit.


All times are GMT +1. The time now is 06:34 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.