#1
  1. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,689
    Rep Power
    171

    Cron Job Command Line. 404 Not Found


    Hello;
    What should I use in Cpanel as the correct command?
    I use
    Code:
    php /home/clubplat/CRM_TO_HB.php
    But i get
    Status: 404 Not Found
    X-Powered-By: PHP/5.2.17
    Content-type: text/html

    No input file specified.
    Thank you
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,316
    Rep Power
    7171
    If I had to guess, I would say your script CRM_TO_HB.php isn't designed to be executed from the command line.

    If it is web-accessible, you could try requesting it using wget or curl instead; ie something like
    Code:
    wget http://website.com/CRM_TO_HB.php
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  4. #3
  5. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,689
    Rep Power
    171
    Originally Posted by E-Oreo
    If I had to guess, I would say your script CRM_TO_HB.php isn't designed to be executed from the command line.

    If it is web-accessible, you could try requesting it using wget or curl instead; ie something like
    Code:
    wget http://website.com/CRM_TO_HB.php
    There is nothing special in the script. Its just a select update query. Directly executable.
    Anyways I am not sure if this is what you meant or not but I added a new script on the server and called it like this but exact same error comes to my email from the cron job
    PHP Code:
    <?php exec('wget http://www.website.com.au/CRM_TO_HB.php');?>
  6. #4
  7. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,316
    Rep Power
    7171
    I meant use wget as the CRON command.

    However, you might also try using the -f flag in the PHP command. ie:
    php -f <filename>
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

IMN logo majestic logo threadwatch logo seochat tools logo