Re: [CentOS] Shell script - ping

2008-07-28 Thread Gopinath Achari
thank u all On Mon, 2008-07-28 at 16:11 +0300, Javor Nikolov wrote: > Hi, > > If you you want a quicker execution - you could also run the pings to > separate hosts in parallel starting the jobs in background (&) and > waiting for them with "wait" after that. You'll have to be more > careful abo

Re: [CentOS] Shell script - ping

2008-07-28 Thread Lorenzo Martínez Rodríguez
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

Re: [CentOS] Shell script - ping

2008-07-28 Thread Bill Campbell
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. ``perld

Re: [CentOS] Shell script - ping

2008-07-28 Thread Javor Nikolov
Hi, If you you want a quicker execution - you could also run the pings to separate hosts in parallel starting the jobs in background (&) and waiting for them with "wait" after that. You'll have to be more careful about the outputs in that case - e.g. redirect them to separate files. Regards, Javo

Re: [CentOS] Shell script - ping

2008-07-28 Thread Laurence Alexander Hurst
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 regards, Gopinath Do you mean something like: ping -c10 host1 ping -c10 host2 which will ping host1 10 times,

[CentOS] Shell script - ping

2008-07-28 Thread Gopinath Achari
hi, how to write a scripts which launches 10 pings to different destinations at execution of single shell scripts please help me any ideas regards, Gopinath ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/lis