#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    USA
    Posts
    194
    Rep Power
    16

    Crontab, correct syntax from command line help


    from a telnet cmd prompt what is the correct syntax for setting up a crontab?

    I want it to run at 23:59 everyday,everymonth,everyday of the week.

    crontab -e 59 23 1-31 1-12 0-6 * wget http://www.mydomain.com/update.php


    any help would be appreciated

    Thanks jobesd
    I only do what the voices in my head keep telling me to do.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    59 23 * * * /full/path/to/wget http://www.domain.com/update.php 2>&1 > /dev/null

    Above is BSD's format so RTFM for yours.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    USA
    Posts
    194
    Rep Power
    16
    I should have stated I have linux.

    would you know the linux format?

    Thanks jobesd.
    I only do what the voices in my head keep telling me to do.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    Can you man 5 crontab? If not, can you search google?

IMN logo majestic logo threadwatch logo seochat tools logo