Automatically pulled from My Clippings on NewsGator Online

$ for i in 192.168.1.{61..71};do ping -c 1 $i &> /dev/null;if [[ $? -eq 0 ]]; then echo $i;fi;done

If you need to ssh into a computer on the local network but you’re unsure of the ip to use, then ping them and see if you get a response. If you do, print out the address you got it from. Adjust the range to suit your network.

commandlinefu.com

by David Winterbottom (codeinthehole.com)



Go to Source

Tags: ,



Leave a Comment

Anti-Spam Protection by WP-SpamFree