Once you have the package (get it from
http://sourceforge.net/projects/prozilla/ ), do the following to manually compile and install it.
Code:
1. tar zxvf prozilla-1.3.7.4.tar.gz
2. cd prozilla-1.3.7.4
3. ./configure
4. make
5. su (i. e. become root)
6. make install
7. exit
8 . cd ..
9. rm -rf prozilla-1.3.7.4
A usefull BASH script to then use prozilla if you are going to download many, similarly named files and you soon get tired of manually renaming them once prozilla complains a file with the same name already exists:
Code:
filename="$1"
file_base=$(basename ${filename})
if [ -f ${file_base} ]; then
#if the file exists already
filename="${file_base%.*}"
ext=`echo ${file_base%}|awk -F . '{print $NF}'`
fudge=`echo $RANDOM`
underscore="_"
fudge=$underscore$fudge
dot="."
newfile=$filename$fudge$dot$ext
echo $newfile
echo $file_base
mv -i $file_base $newfile
cmd="proz $1 -k4 --retry-delay=1"
$cmd
else
cmd="proz $1 -k4 --retry-delay=1"
$cmd
fi
I saved this file as pz.sh on my system, now all I need to do to download a file with prozilla is go
pz.sh <url>
where <url> is replaced with the URL of the file I want, and it is almost 99% guarranteed that all files downloaded will have unique names.