BASH Linux Talking IP Script

View previous topic View next topic Go down

BASH Linux Talking IP Script

Post by jamied_uk on 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
avatar
jamied_uk
Admin

Posts : 2195
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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