Advertisement
v1ral_ITS

easy setting of variable GUI shell script

Aug 31st, 2018
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.25 KB | None | 0 0
  1. #!/bin/bash
  2. ####################################
  3. #
  4. # START
  5. # g0ne_@p0stal <v1ral_ITS>
  6. # ImPerialTeKSolutions@outlook.com
  7. #
  8. ####################################
  9. echo "          #              #      "
  10. echo "          ################    ####"
  11. echo "          ################    ####"
  12. echo "          ################     ##"
  13. echo "                         #"
  14. echo "             #################"
  15. echo "          ####################"
  16. echo "          ####################"
  17. echo "          ##             #"
  18. echo "          ##"
  19. echo "            #"
  20. echo "          ####      ## "
  21. echo "          ####    ###### "
  22. echo "          ##     ######## "
  23. echo "          #     ####     #"
  24. echo "          #     ####     #"
  25. echo "          #     ####    ##"
  26. echo "          #    ####    ## "
  27. echo "           ########   ####"
  28. echo "            #####"
  29. echo " v1ral_ITS"
  30. echo " https://pastebin.com/u/v1ral_ITS"
  31. echo " ImPerialTeKSolutions@outlook.com"
  32. sleep 0
  33.  
  34. # Start Script
  35. # Dimensions
  36. height=50
  37. width=60
  38. outfile=$0.output
  39.  
  40. # Start
  41. echo -n "VARIABLE=" > $outfile
  42. gdialog --title "Displaying, $0" --inputbox "Enter variable, please:" $height $width 2>> $outfile
  43.  
  44. # Retrieve and display variable
  45. . $outfile
  46. echo "The variable in the \"input box\" was: "$VARIABLE""
  47.  
  48. # Clean
  49. rm $outfile
  50.  
  51. exit $?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement