Help with a cron job please....

Discussion in 'Programming' started by rapidadds, Dec 30, 2008.

  1. #1
    Ok, I set up a script, and now I need to set up the cron job. The script is located here: http://rapidadds.com/mobaccounts/xtrmtrain1_0_0xtra/index.php (it's not done yet obv) As you can see, their are lots of sub-folders, so how do I set up the cron for it, the default cron is:
    /usr/bin/php /home/rapidadd/public_html/cronjob_resettrain.php
    But, since my train is located in them /folders, how do I fix the cron? Thanks for your help!!
     
    rapidadds, Dec 30, 2008 IP
  2. DanielRosca

    DanielRosca Active Member

    Messages:
    158
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #2
    Should be like this if you have the default like that:
    /usr/bin/php /home/rapidadd/public_html/mobaccounts/xtrmtrain1_0_0xtra/index.php
    PHP:
    You can also use from SSH crontab like this:
    php /home/rapidadd/public_html/mobaccounts/xtrmtrain1_0_0xtra/index.php
    PHP:
     
    DanielRosca, Dec 30, 2008 IP