Cron Job Problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • holtchess
    Junior Member
    • Dec 2008
    • 1

    Cron Job Problems

    I need to run a php script every day, but I have this problem:

    If I give the path to de script in this format

    Code:
    /usr/local/bin/php/home/**USER**/public_html/path/to/my.php
    I get "Not a directory" in the email the server sends.

    If i use
    Code:
    /home/**USER**/public_html/path/to/my.php
    I get that I have no permissions to do this.

    What is the correct way to do it?

    Thanks!
    Last edited by holtchess; 12-29-2008, 10:44 PM.
  • AndrewT
    Administrator
    • Mar 2004
    • 3653

    #2
    You're missing a space. You need to use:

    /usr/local/bin/php /home/**USER**/public_html/path/to/my.php

    Comment

    Working...