Skip to content

Instantly share code, notes, and snippets.

@zahardzhan
Created July 2, 2010 09:29
Show Gist options
  • Save zahardzhan/461147 to your computer and use it in GitHub Desktop.
Save zahardzhan/461147 to your computer and use it in GitHub Desktop.
#!/bin/bash
###########################
### Copyright Denis Popov 2010 ##
### Downloader files from ##
### The HTTP/FTP ##
###########################
get_information()
{
dirdownload=$(zenity --entry --title "Quadregus Downloader" --text "Write folder for downloading file" --width 300)
linktodownload=$(zenity --entry --title "Quadregus Downloader" --text "Write link downloading file" --width 300)
}
process_downloading()
{
cd $dirdownload
wget $linktodownload 2>&1 | zenity --progress --title "Quadregus Downloader" --text "Downloading file" --pulsate --auto-close --width 400
}
ending()
{
echo "all files downloaded"
}
get_information
process_downloading
ending
#############END############
@valpackett
Copy link

Ололо!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment