Setting up automatic download

Alvin Thompson alvin-ubuntu at thompsonlogic.com
Wed Aug 24 19:32:43 UTC 2005


Rajiv Vyas wrote:
> Is there a program or a combination of ways to automate the following: 
> On a given date (say once a week or month) go to particular URLs, save 
> that page as an HTML file on your HD and hopefully email it to you?

maybe you can create a shell script and add it as a cron job which does 
something like this:

cd /tmp && wget http://www.apache.org/foundation/preFAQ.html && cat 
preFAQ.html | mail -s "subject (new web page)" me at mydomain.com

i don't have mailx installed (which supplies 'mail') so i don't know if 
this is quite the right syntax, but something like that should work. you 
could probably use 'sendmail' directly as well. maybe someone here who 
knows more about mailx or sendmail (or any other program which sends 
mail via the command line) can chip in...

hth,
alvin




More information about the ubuntu-users mailing list