Guest User

Untitled

a guest
Oct 22nd, 2014
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. #!/bin/bash
  2. # whois
  3. _zenity="/usr/bin/zenity"
  4. _out="/tmp/whois.output.$$"
  5. domain=$(${_zenity} --title "Ejemplo Zenity by hackplayers" \
  6. --entry --text "introduce el nominio sobre el que quieres hacer Whois" )
  7. ICON="/home/manuel/Descargas/Ed.png"
  8. if [ $? -eq 0 ]
  9. then
  10. # barra de progreso
  11. whois $domain | tee >(${_zenity} --width=200 --height=100 \
  12. --title="whois" --progress \
  13. --pulsate --text="Searching domain info..." \
  14. --auto-kill --auto-close \
  15. --percentage=10) >${_out}
  16.  
  17.  
  18.  
  19. # pantalla de salida
  20. ${_zenity} --width=800 --height=600 \
  21. --title "informacion Whois $domain" \
  22. --text-info --filename="${_out}"
  23.  
  24.  
  25.  
  26. else
  27. ${_zenity} --error \
  28. --text="No input provided"
  29. fi
Advertisement
Add Comment
Please, Sign In to add comment