View Single Post
Old 12. Dec 2009, 01:57 AM   #3 (permalink)
Senior Member
debtboy's Avatar
Join Date: May 2009
Location: ~/
Posts: 128

Once we hit enter, the script is running, the first line should look familiar,
you can refer back to the script and see the echo.

Now I type in the "" IP address, we found earlier
and the location (down to the nearest city) is given.

If you don't type an IP address and just hit enter, the location of your pc/gateway (down to the nearest city) will be displayed.

This was a very simple, yet powerful script.
There are over 5,000 commands on a typical Linux system,
each with various options which allow you to do just about anything.
When used in conjunction with cron/crontab you can do
just about anything without even being there (Ha! Ha! Ha!)

If your not already scripting, give it a shot.
[I][B]Linux, the choice of a GNU generation[/B][/I]
debtboy is offline   Reply With Quote