Go Back   CodingForums.com > :: Computing & Sciences > Computer/PC discussions

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-17-2012, 03:40 PM   PM User | #1
Bobafart
Regular Coder

 
Join Date: Dec 2006
Posts: 416
Thanks: 168
Thanked 1 Time in 1 Post
Bobafart is on a distinguished road
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
Bobafart is offline   Reply With Quote
Old 09-17-2012, 11:33 PM   PM User | #2
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
Quote:
Originally Posted by Bobafart View Post
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.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!

Last edited by Spookster; 09-17-2012 at 11:44 PM..
Spookster is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:55 AM.


Advertisement
Log in to turn off these ads.