A message for Linux.com registered users: We are in the process of making changes to the Linux forums. From Monday, 8/13/18 at 6:00 PM PT to Tuesday, 8/14/18 at 4:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Tuesday, 8/14/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

June 8, 2011

Zenity wget downloader script


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

Click Here!