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
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
OUTPUT="$(show_ip -1)"
echo "${OUTPUT}"
espeak -v  en "$OUTPUT" -g 01ms -a 110 -p 58 -s 175

Posts : 2280
Join date : 2010-05-09
Age : 34
Location : 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