Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # whois
- _zenity="/usr/bin/zenity"
- _out="/tmp/whois.output.$$"
- domain=$(${_zenity} --title "Ejemplo Zenity by hackplayers" \
- --entry --text "introduce el nominio sobre el que quieres hacer Whois" )
- ICON="/home/manuel/Descargas/Ed.png"
- if [ $? -eq 0 ]
- then
- # barra de progreso
- whois $domain | tee >(${_zenity} --width=200 --height=100 \
- --title="whois" --progress \
- --pulsate --text="Searching domain info..." \
- --auto-kill --auto-close \
- --percentage=10) >${_out}
- # pantalla de salida
- ${_zenity} --width=800 --height=600 \
- --title "informacion Whois $domain" \
- --text-info --filename="${_out}"
- else
- ${_zenity} --error \
- --text="No input provided"
- fi
Advertisement
Add Comment
Please, Sign In to add comment