Home Linux Community Forums Linux Distributions Ubuntu Zenity wget downloader script

Zenity wget downloader script

Link to this post 08 Jun 11

I like d4x but can not seem to find it in the new ubuntu 11.04 with apt-get install d4x I like d4x becuse it will let me control my download speed. So I got board and used zenity with wget and it still not perfect (I have poor programing skills). So fell free to use it if you need it. I just ask that you post the changes here so I can see what you did (learn from you the experts).

wgeturl=$(zenity --entry --text="enter url");
zenity --info --text "Choose speed limit";
szlimitspeed=$(zenity --entry --text="1024k low 10240k med 0k 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`;
echo 'download Job completed'
killall wget

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board