Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: crontab issue

  1. #1
    Regular Coder
    Join Date
    Dec 2006
    Posts
    417
    Thanks
    168
    Thanked 1 Time in 1 Post

    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

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    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.
    Last edited by Spookster; 09-17-2012 at 11:44 PM.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •