Cron job failing - Could not open input file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LoAdEd
    Junior Member
    • Mar 2004
    • 3

    #1

    Cron job failing - Could not open input file

    Good morning fellow Dathornians,

    I have a php/mysql-based text game that I run on my site. It has a scheduler that refreshes the turn count and updates the database but the cron job will not run it properly.

    Cron job:
    Code:
    */6 * * * * /usr/local/bin/php /home/<user>/public_html/dz/scheduler.php?password=MyPassword
    The output I get from the email summary is:
    Could not open input file: /home/<user>/public_html/dz/scheduler.php?password=MyPassword

    I can run the php file and pass the password parameter to it via my web browser without issue.

    Is there possibly a permissions issue of some sort? I tried setting the file to 755 as well.

    Any help is most appreciated.
    LoAdEd
  • AndrewT
    Administrator
    • Mar 2004
    • 3655

    #2
    You're getting that error because of the query string. You should probably just use curl, wget, lynx, etc. to load the script via HTTP.

    Comment

    • LoAdEd
      Junior Member
      • Mar 2004
      • 3

      #3
      Ok. I used wget -r to retrieve it. That seems to be working now. Thanks Andrew!
      LoAdEd

      Comment

      Working...