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
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