Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on quick cron question... in the Shared & Semi-Dedicated forum
These cron job settings will execute my script every 72 hours, correct? * */72 * * * Also, what does the suggested: > /dev/null do ...

  1. #1
    JPC Senior Member
    Join Date
    Nov 2003
    Posts
    73

    quick cron question...

    These cron job settings will execute my script every 72 hours, correct?

    * */72 * * *

    Also, what does the suggested: > /dev/null do if l add it to the end of the command line? Thanks for your help, and your time.

    ~JSlime
    Last edited by JSlime; 03-27-2004 at 07:08 PM.

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    I'm not sure if */72 will work, as the hour field for cron is supposed to accept values between 0 and 23. Instead, I think you'd have to use 0 1 */3 * * *, which would run your script every third day at 1:00 AM.

    >/dev/null casuses the system to discard any output that your script creates. Without it, anything that your script would normally write to the screen/browser would be, I belive, based on my experience with other systems, be sent to you in email.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    JPC Senior Member
    Join Date
    Nov 2003
    Posts
    73
    Fantastic, thanks Jason!!
    So l've got:

    0 1 */3 * * in there now, so l'm good to go, correct?

    (yours had an extra astrix on the end, that was just a typo l assume)

    ~JSlime

  4. #4
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Yes, that was a typo. You should be set.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

Bookmarks

Posting Permissions

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