Thread: Cron tasks

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Soignies, HT, Belgium
    Posts
    4
    Rep Power
    0
    Cron tasks

    Hi everybody,

    I'm building an auction site which needs scripts automatically launched to scan the closing auctions.
    I'll use Linux's crontab.

    I'd prefer to avoid installing Php as a cgi and prefer to keep my apache module config.
    I'd also prefer to avoid the use of a browser as lynx to do this job because I fear the time-out

    How I can launch my scripts?

    Thank you in advance )

    Kind regards, Sebastien

    ------------------
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    UK
    Posts
    7
    Rep Power
    0
    I asked this question recently as I am in the same posistion as you with regards to not having PHP as a CGI app. LYNX was suggested but is not an option for me. Then someone suggested WGET which I am testing now but it seems to 'float the boat'

    Give it a go !
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    UK
    Posts
    7
    Rep Power
    0
    I asked this question recently as I am in the same posistion as you with regards to not having PHP as a CGI app. LYNX was suggested but is not an option for me. Then someone suggested WGET which I am testing now but it seems to 'float the boat'

    Give it a go !
  6. #4
  7. No Profile Picture
    Viper_SB
    Guest
    Devshed Newbie (0 - 499 posts)
    If you need help useing WGET just ask.
    This is the command I use: (I have it running daily)

    # Comment the next line if you want to receive a mail message each time the cron runs
    MAILTO=""

    # Change to the corrent path on the server. For the program wget
    PATH=/usr/local/bin

    # These are the commands that retrive the pages and make them run
    0 0 * * * wget -b http://www.yourwebsite.com/somedir/dailycron.php3
    rm -f /home/user that is running the cron/wget.log
    rm -f /home/user that is running the cron/dailycron.php3

    ------------------
    Viper_SB

Similar Threads

  1. Running SELECT INTO OUTFILE as a CRON job
    By JAMIII in forum MySQL Help
    Replies: 6
    Last Post: October 14th, 2004, 08:09 AM
  2. Mail with attachment does not work through cron job
    By paCkeTroUTer in forum PHP Development
    Replies: 2
    Last Post: December 8th, 2003, 08:59 PM
  3. cron job! pls help!
    By keesiewf in forum UNIX Help
    Replies: 3
    Last Post: July 24th, 2003, 08:56 PM
  4. php cron
    By michelle in forum PHP Development
    Replies: 1
    Last Post: June 7th, 2003, 12:49 PM
  5. Perl script not running as cron
    By jkrew_devshed in forum Perl Programming
    Replies: 2
    Last Post: July 30th, 2002, 10:01 AM

IMN logo majestic logo threadwatch logo seochat tools logo