PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

BASH Linux Talking IP Script

Go down

BASH Linux Talking IP Script Empty BASH Linux Talking IP Script

Post by jamied_uk 29th April 2016, 04:00




https://app.box.com/s/cx77cvrdk90ae5nzk8meq8yf9bkj9lku
Code:
function show_ip(){
echo -en "\e[92mYour IP's: \c"
echo ""
echo -n "Your Internal IP Is "
ifconfig eth0 | grep "inet addr"| sed 's/addr:/ /' | awk '{print $2}'
echo -n "Your External IP Is "
dig +short myip.opendns.com @resolver1.opendns.com
}
OUTPUT="$(show_ip -1)"
echo "${OUTPUT}"
espeak -v  en "$OUTPUT" -g 01ms -a 110 -p 58 -s 175
jamied_uk
jamied_uk
Admin

Posts : 2942
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum