Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Linux IP checker test
SUBMITTED BY:
Guest
DATE:
Nov. 26, 2013, 7:21 p.m.
FORMAT:
Text only
SIZE:
532 Bytes
Raw
Download
Tweet
HITS:
1207
Go to comments
Report
ip_old='/tmp/text.1/text'
ip_new='/tmp/text.2/text'
i=0
while [$ != 1];
do
if [ -f $ip_old ];
then
read ip_test_old < ip_old
wget -P/tmp/text.2/ http://wtfismyip.com/text
read ip_test_oldd < ip_new
if ["$ip_test_old" == "$ip_test_oldd"]
then
echo "Match!"
else
echo "IP CHANGE! IP Was changed to" $ip_test_oldd
fi
else
echo "Welcome to the IP checker! N00b"
wget -P/tmp/text.1/ http://wtfismyip.com/text
fi
sleep 3
done
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus