Cron Problem

Discussion in 'Apache' started by bschneider5, Mar 18, 2006.

  1. #1
    I am working to set up my forst cron and have encountered a bit of a snag. I edited the job to update a feed in wordpress, and the command saves but never executes. Here is the command line:


    * * * * * cd/home/user/nfl-superbowl.net/wp-content ; php -q update-feeds.php

    For a test I wanted it to run every minute, but will change once working.

    My other question is, is the command line saving to the right file? When prompted to save, it writes to the file:

    File Name to Write: /tmp/crontab.UMa9H2/crontab

    Is this right?

    Any help would be great!
     
    bschneider5, Mar 18, 2006 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,849
    Likes Received:
    4,542
    Best Answers:
    123
    Trophy Points:
    665
    #2
    I'm pretty novice at this too but I'd remove the cd command and run cwd() inside the php script. you can specify the path to the php script too, if that's what you're trying to work out.

    I'm not sure about the save, but it looks like the place where a temp file might go. I'd need to see the code for that.
     
    sarahk, Mar 18, 2006 IP