Cron job help

Discussion in 'PHP' started by imchandan, Mar 10, 2008.

  1. #1
    hey all,
    i want my cron job on my server to run a php script of another server (say example.com) every other day..is it possible or i will not be able to run another server's file...
    one more thing.
    permission of files on example.com is 777...
    plz help me out..
     
    imchandan, Mar 10, 2008 IP
  2. mattgoody

    mattgoody Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    id use wget
     
    mattgoody, Mar 10, 2008 IP
  3. VernonK

    VernonK Peon

    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yep... wget should do the trick.
     
    VernonK, Mar 10, 2008 IP
  4. lephron

    lephron Active Member

    Messages:
    204
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    The following cron entry will run once a day, and won't produce any output

    0 0 * * * wget -q -O - [url]http://www.example.com/script-to-run.php[/url] > /dev/null
    Code (markup):
     
    lephron, Mar 10, 2008 IP
  5. imchandan

    imchandan Guest

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #5
    Thanks guys...
    really appreciated...
    thanks a ton :)
     
    imchandan, Mar 10, 2008 IP