[CentOS] Shell script - ping

Mon Jul 28 17:06:29 UTC 2008
Lorenzo Martínez Rodríguez <Lawwait at yahoo.es>

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
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20080728/1c77ab9e/attachment-0005.html>