| |
|
Welcome to AstaHost - Dear Guest | |
Replying to Bash Script To Display Your Ip
Topic Summary
dmnhunter
Posted 29 August 2009 - 12:16 AM
exip=`lynx -dump http://www.Whatismyip.Com | head -and 11`
#Echo "$exip"
curl -o /dev/null -s -u twittername:twitpasswd -d status="$exip" http://twitter.com/statuses/update.xml
Now if you setup a misc twitter account you can send this information to you if you happen to be on the road and need to know the ip to get in.
just insert your new twittername and paswd here and be sure to make those tweets private and then follow with your primary twitter account.
I use this from everything to knowing if root logs in to server powerdown and reboots.......
Very handy.
Posted 08 May 2009 - 02:12 AM
darkken: ifconfig gives you your internal IP (ie. The one your router gave you). If you want your network's external IP (ie. The one the internet sees), then the only real way is with external websites.
Posted 08 December 2008 - 09:08 PM
! /bin/bashexip=`lynx -dump http://www.Whatismyip.Com | head -and 11`Echo "$exip"
-reply by silv3rdarkken
Posted 24 July 2008 - 10:11 AM
Posted 21 April 2008 - 02:10 PM
Bash Script To Display Your Ip
I accidentally pressed Enter key without assigning a new password in my freewebs.Com site. Now they say my password is "null".
Any help available to recover my site?
-reply by Cherian
ethergeek
Posted 11 December 2007 - 05:13 PM
You could/should also include links instead of lynx. Usually links is installed, for lynx you have to select individual packages, which not everyone does. (I do but that's not the point
)
In any way, Links looks better than lynx. And the speed of both is the same
It's not a very long tutorial but it's nice.
Why lynx? wget is more common on unix based default installs these days than lynx or links or elinks (or any other text browser for that matter).
toby
Posted 11 December 2007 - 01:18 PM
Nice idea, I'm surprised it works.
SiriusRo
Posted 11 December 2007 - 04:35 AM
saneax
Posted 02 September 2005 - 06:42 AM
OldSkuBoi
Posted 27 May 2005 - 08:14 PM



