Gossamer Forum
Home : General : Perl Programming :

Problems with wGet

Quote Reply
Problems with wGet
Hi:

I am taking a news feed from another site, and trying to use wGet to get the file local on my machine.

I used wget from the command line, and it worked fine. I used this command:

wget http://www.theirsite/export-news.html --output-document /path/to/my/test.txt

As a command line in telnet, it works great. But when run as a cron job (which is my goal!), I get this error:

wget: not found

Not sure why- anyone got any ideas?

Should I put this in s script, and then cron the script? If I do that, I would like to run a check to make sure the file is not zero bytes, how can I do that?

I think what I would like to do, if I run a script, is run the ewget, check and make sure it is not zero bytes, and if it is not, then copy test.txt to news.txt (which is the actual file I use for the include.) Does this sound good?

Thanks!
dave

Big Cartoon DataBase
Big Comic Book DataBase
Subject Author Views Date
Thread Problems with wGet carfac 8424 Apr 23, 2003, 9:10 AM
Thread Re: [carfac] Problems with wGet
Wil 8230 Apr 23, 2003, 11:43 AM
Post Re: [Wil] Problems with wGet
carfac 8222 Apr 23, 2003, 11:48 AM
Thread Re: [carfac] Problems with wGet
Paul 8241 Apr 23, 2003, 11:51 AM
Post Re: [Paul] Problems with wGet
carfac 8233 Apr 23, 2003, 12:02 PM
Thread Re: [carfac] Problems with wGet
criterium 7852 Apr 10, 2005, 8:35 AM
Post Re: [criterium] Problems with wGet
Andy 7812 Apr 29, 2005, 7:01 AM