Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, When I set the crontab to run every minute, every hour, it works fine. * * * * * env > /tmp/env.output However I want to run it every ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2012
    Posts
    3

    Crontab not working with the hour configuration


    Hi,

    When I set the crontab to run every minute, every hour, it works fine.

    * * * * * env > /tmp/env.output

    However I want to run it every day at 8:00 AM and it does not run.

    * 8 * * * env > /tmp/env.output

    I ran the 'date' command which says it's 8AM PST and also the 'TZ' command and it's also 8PST.

    Thank you for you help.

  2. #2
    Just Joined!
    Join Date
    May 2012
    Location
    Tampere, Finland
    Posts
    21
    00 08 * * *

    I'm guessing you dont want to run it every minute when hour is 8

  3. #3
    Just Joined!
    Join Date
    Aug 2012
    Posts
    3

    Yes

    Hi,

    Thanks, well for the sake of testing, I set it to run every minute. When I put in '*" on the hour, it works, however when I put '8' on the hour, it doesn't work. I checked the current time on the Linux and it says it's 8AM.

    Thank you.

    Quote Originally Posted by Gjordis View Post
    00 08 * * *

    I'm guessing you dont want to run it every minute when hour is 8

  4. #4
    Just Joined!
    Join Date
    May 2012
    Location
    Tampere, Finland
    Posts
    21
    but did you test 0 at minutes and 8 at hours ?

  5. #5
    Just Joined!
    Join Date
    Aug 2012
    Posts
    3
    Yes, unfortunately that did not work. It was my initial configuration.

  6. #6
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    778
    I doubt it's the cron daemon. Try changing > to 2> and see what error it's throwing, as it's likely failing with an error.

Posting Permissions

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