PDA

View Full Version : cron job question


phppete
05-06-2007, 04:23 AM
Why did the following fail to execute:


0 */1 * * * /bin/sh /big/dom/x....


but this is working as expected


17 */1 * * * /bin/sh /big/dom/x..


I thought 0 */1 * * * means every hour, at the top of the hour eg 1:00am, 2:00am, but it appears that isn't the case. What am I missing?:confuz:

Thanks

Kevin
05-06-2007, 11:03 AM
Pete,

I just did a test and that syntax worked fine (as it should). The only thing strange I see is the '*/1' which should be the same thing as '*' but I used that syntax in my test and it worked fine.

phppete
05-06-2007, 11:11 AM
*/1 is every hour, I believe you can do */3 every three hours, but yep its the same. I don't know why it wasn't working, I'll have to look later and will get back to you. I'm deep up to my neck in drag and drop nested trees right now trying to sort 'nested sets' in mysql from a frontend DHTML/ajax drag and drop GUI ... 15 hours and counting and still not gaining much ground :wah: