| Hi,
I would like to write a perl script to mirror a website
($URL) automatically every day, using cron.
The following code works, but there are some problems.
=================
open(FILE,"|httrack $URL -O /tmp/test/$SiteId -
m1000000M50000000nN4q");
close(FILE);
=================
When the perl script is called by cron, the
command "httrack $URL -O /tmp/test/$SiteId -
m1000000M50000000nN4q" would give output.
Example:
=================
Mirror launched on Thu, 11 Jul 2002 17:37:08 by HTTrack
Website Copier/3.20RC4
[XR&CO'2002]
mirroring <http://www2u.biglobe.ne.jp/~MITSU/rie/> with the
wizard help..
Done.
Thanks for using HTTrack!
=================
Then the output will be sended to the user's email account
as an email. This is very annoying if I am using cron to
run the perl script every minute, because my email account
will be flooded with these kind of messages. Is it
possible to disable httrack to output messages when
mirroring?
Regards,
jpop
| |