HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: shell scripting httrack
Author: Bo Hovgaard Thomasen
Date: 12/12/2007 14:27
 
> here is the tcsh version of my shell script:
> #!/bin/tcsh
> # create meaningful named, dated folder for archive
> set tdy=`date +%Y"_"%m"_"%d"_"%H"_"%M`
> set savetopath="/usr/local/www/mysite.com/httpdocs/site_
> archives/clientname/"$tdy"_sitename_oneleveldeep"

In bash I would do like this to get it funktion correctly, I think (I changed
the paths and website in my example): 
 
#!/bin/bash
# create meaningful named, dated folder for archive
tdy=`date +%Y_%m_%d_%H%M`
savetopath=`echo "~/Websites/"$tdy"_dr.dk_oneleveldeep"`
httrack <http://www.dr.dk/> -O "$savetopath" +*.dr.dk/* -F "httrack
useragentarchiver" -r3 -m2000000 -c4 -nv

> * HTTrack3.22-3-nozip-nossl: command not found (in

Consider using at least HTTrack version 3.33 as the later versions (in my
experience) are better than the earlier versions. 
 
Reply Create subthread


All articles

Subject Author Date
shell scripting httrack

12/10/2007 22:04
Re: shell scripting httrack

12/12/2007 14:27
Re: shell scripting httrack

12/17/2007 17:09
Re: shell scripting httrack

12/18/2007 07:35
Re: shell scripting httrack

02/21/2008 00:12




7

Created with FORUM 2.0.11