wget and cron

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Randy Andy
    Registered User
    • Feb 2003
    • 63

    #1

    wget and cron

    I am trying to setup a cronjob to download a file from the web and write it to my server to run every hour
    this is the crontab entry I have created
    10 * * * * wget -O /usr/home/httpd/mysite.com/page.shtml http://www.mysite.com/template.shtml >/dev/null
    unfortunately cron entry isn't working
    although when I execute the wget line from shell it works
    does anyone know why the cronjob wouldn't work although wget is working from shell?
  • mrthumbs
    salad tossing sig guy
    • Apr 2002
    • 11702

    #2
    check your permissions: there are different permissions while logged on and running that command..

    Comment

    • vending_machine
      Confirmed User
      • Jun 2002
      • 1071

      #3
      Try specifying the full path to wget.

      Comment

      • Randy Andy
        Registered User
        • Feb 2003
        • 63

        #4
        Originally posted by vending_machine
        Try specifying the full path to wget.
        Thanks vending_machine
        your advice worked

        Comment

        Working...