BASH Linux Talking IP Script
Page 1 of 1
BASH Linux Talking IP Script
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
Similar topics
» Linux BASH Script Running Commands and Functions From Bash Script and saving to varables
» Talking Countdown With Bash On Linux
» Linux Bash Talking Function
» Talking Linux Bash IP Change Security TUT
» Talking Clock With Bash On Linux & espeak
» Talking Countdown With Bash On Linux
» Linux Bash Talking Function
» Talking Linux Bash IP Change Security TUT
» Talking Clock With Bash On Linux & espeak
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|