Menu

Daily Digest

Help
2003-06-11
2003-06-13
  • Marie Alline

    Marie Alline - 2003-06-11

    Okay, I've got my dumb face on again! I know very little about cron but I set up cron to work with daily.php this way.

    59 23 * * * /home/username/www/daily.php

    This is the letter that the cron dameon is sending me.

    /home/website/www/daily.php: ?php: No such file or directory
    /home/website/www/daily.php: /aquota.user: Permission denied
    /home/website/www/daily.php: line 3: syntax error near unexpected token `(e'
    /home/website/www/daily.php: line 3: ` by Edward Ritter (esritter@banana.net)'

    Can anyone help me with this?

    Thank you,

    Marie Alline

     
    • Anonymous

      Anonymous - 2003-06-13

      Hello Marie,

      you can't call a php file from cron unless you're running the command line version of PHP as well (which most people don't). You must call another program that is capable of processing the PHP file.

      Try changing the above line to

      59 23 * * * wget --delete-after http://your-www-site.com/daily.php > dev/null

      and see if this helps. Or use lynx as it says in the README.

      Greetings,
      Zorro

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.