#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. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    You should try asking this question in the Linux or BSD forum.
  4. #3
  5. Newbie :P
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Jan 2001
    Location
    In the PHP Engine :-)
    Posts
    2,880
    Rep Power
    21
    But the correct syntax is:

    59 23 * * * /path/to/wget http://www.mydomain.com/update.php

    HTH
    ---------------------
    -- SilkySmooth --
    ---------------------
    Proxy

IMN logo majestic logo threadwatch logo seochat tools logo