Skip to main content

Thread: Zenity wget downloader script


i d4x can not seem find in new ubuntu 11.04 apt-get install d4x d4x becuse let me control download speed. got board , used zenity wget , still not perfect (i have poor programing skills). fell free use if need it. ask post changes here can see did (learn experts).

#!/bin/bash
wgeturl=$(zenity --entry --text="enter url");
zenity --info --text "choose speed limit";
szlimitspeed=$(zenity --entry --text="1024 low 10240 med 0 unlimited");
zenity --info --text "choose file save destination";
szsavepathto=$(zenity --file-selection --multiple --save --confirm-overwrite);
cd $szsavepathto
wget -c --limit-rate=$szlimitspeed $wgeturl | (if `zenity --progress --text="downloading" --percentage=1 --auto-close`;
then
echo 'download job completed'
else
killall wget
exit
fi)



Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [all variants] Zenity wget downloader script


Ubuntu

Comments