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

Now for a simple demonstration...

If your going to use this file, copy it into a text editor and save it.
I saved it as location.sh, but you name it whatever you want.
In addition to saving the file, you will have to make it executable, use this command:
Code:
chmod 755 ./location.sh
The "./" just means the current directory you are in and if you named
the file something different then adjust the command accordingly.


I'm going to pick an IP address we are all familiar with (this website) techsupportalert.com. Ping should do the trick.


I'm running ping for 1 count which is enough to expose the IP address.



Now to run the script...
__________________
[I][B]Linux, the choice of a GNU generation[/B][/I]
debtboy is offline   Reply With Quote