A Cron Job Question

Discussion in 'Site & Server Administration' started by tolgafiratoglu, Dec 25, 2007.

  1. #1
    Hi,
    I have a dreamhost virtual host. I need to run a script periodically. What I need is

    What's the path of a .php file I should write in the command line?

    Thanks.
     
    tolgafiratoglu, Dec 25, 2007 IP
  2. abdussamad

    abdussamad Active Member

    Messages:
    543
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Login via ssh and type "which php" to learn the path to the php binary. Then use "/path/to/php /path/to/script" in your crontab. I hope thats clear.
     
    abdussamad, Dec 26, 2007 IP
  3. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #3
    in ssh

    goto that directory where the script is

    type "pwd"

    it will tell you

    Regards

    Alex
     
    kmap, Dec 26, 2007 IP