Re: Shell script - ping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Bill Campbell escribió:
On Mon, Jul 28, 2008, Gopinath Achari wrote:
  
hi,

		how to write a scripts which launches 10 pings to different
destinations at execution of single shell scripts

please help me any ideas
    

If your goal is to test connectivity, you might look at the perl
Net::Ping module.  ``perldoc Net::Ping'' has several examples of
checking one or more systems to see if they are alive.

BTW:  Anybody know of a python equivalent to this?

Bill
  
Hello,

I have done something before with nmap -sP <target> time ago. Later you can grep the response to know whether an IP address is alive or not.

Hope it helps,

-- 



Lorenzo Martínez Rodríguez
Consultor de seguridad informática
 
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux