GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   wget and cron (https://gfy.com/showthread.php?t=202563)

Randy Andy 11-28-2003 09:21 AM

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 11-28-2003 09:23 AM

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

vending_machine 11-28-2003 09:38 AM

Try specifying the full path to wget.

Randy Andy 11-28-2003 10:04 AM

Quote:

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


All times are GMT -7. The time now is 11:35 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123