What is the IP of my new site?

Hello All,
This one will be a short one-liner. We have a new www.cydone.com site and we are all excited! There will be much more content to come, so stay tuned!
Now for the technical part: ever wondered what is the current external address of a computer? Here is a quick one-liner that prints just that:
wget checkip.dyndns.com -O - -o - | perl -pe "s/.*?(\d+.\d+.\d+.\d+).*/\1/"'
There are two things here, a wget and some perl formatting. The wget uses the -O - and -o - to redirect both the output and any error on the stdout, so no files involved. This would print an html page, thanks to dyndns server displaying your IP address as seen by the external world.
Then perl filters out what is received from the pipe and iterates over the data received while printing it with the -pe switches. The rest is simply a regular expression throwing anything but what looks like an IP address.
Try it!
Thanks, More to come soon!
FX
PS: I looked at your subject requests, it seems like we are going into 2 main directions: requirement management and testcases/scripts/automation questions. I will prepare a short list and submit this. Keep sending the emails! The comments are now activated, you should be able to list your requests there as well (email info@cydone.com, use subject FX_BLOG for those who are not logged-in)!
- fperron's blog
- Login or register to post comments
