HTTrack Website Copier
Free software offline browser - FORUM
Subject: Run httrack in perl with cron
Author: jpop
Date: 07/11/2002 11:39
 
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
 
Reply


All articles

Subject Author Date
Run httrack in perl with cron

07/11/2002 11:39
Re: Run httrack in perl with cron

07/11/2002 19:58
Re: Run httrack in perl with cron

07/11/2002 21:32
Re: Run httrack in perl with cron

07/11/2002 21:43
Re: Run httrack in perl with cron

07/11/2002 22:05
Re: Run httrack in perl with cron

07/11/2002 22:19
Re: Run httrack in perl with cron

07/12/2002 21:49




e

Created with FORUM 2.0.11