#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    1
    Rep Power
    0

    cron job problem


    Hi I have a question about cron job

    is there a way to execute a php script every lest say half an hour ?

    I understand that something like:
    30 * * * * path/script_name.php will do no good cause i need apache server to execute it... does any one know the command needed for that ?

    Thanks
  2. #2
  3. Full Access
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    2,019
    Rep Power
    17
    Try:

    30 * * * * /usr/bin/wget http://www.example.com/script.php > /dev/null 2>&1
    Alex
    (http://www.alex-greg.com)

IMN logo majestic logo threadwatch logo seochat tools logo