jfreak53

Plowdown GUI link downloader

Apr 7th, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ME=$(echo "Please replace this text with your links to download" 2>&1 | zenity --text-info --editable --width 650 --height 400);
  4.  
  5. zenity --question --ok-label=Yes --cancel-label=No --text="Do you wish to shutdown when finished?"
  6.  
  7. if [[ $? == 0 ]] ; then
  8.    RESP=y
  9. else
  10.    RESP=n
  11. fi
  12.  
  13. plowdown $ME
  14.  
  15. if [ "$RESP" = "y" ]; then
  16.   sudo shutdown -h now
  17. fi
Add Comment
Please, Sign In to add comment