Re: network monitoring script ...help

2010-06-17 Thread Luis Costabile
First of all, you should post scripts without special characters. Change this line for host in `awk '/^[0-9]/ { print $1 }' /home/jk/nethost` To: for host in `cat /home/jk/nethost` On 17 June 2010 07:28, Jatin K wrote: > > Hi all > > I've got the following[1] script from the Internet ( by goo

Re: network monitoring script ...help

2010-06-17 Thread Jatin K
On Thursday 17 June 2010 07:44 PM, Patrick O'Callaghan wrote: > On Thu, 2010-06-17 at 16:58 +0530, Jatin K wrote: > >> I've got the following[1] script from the Internet ( by >> googling ) >> but it is not working :-( >> >> can anyone tell me what is wrong with it >> > Not unless

Re: network monitoring script ...help

2010-06-17 Thread Patrick O'Callaghan
On Thu, 2010-06-17 at 16:58 +0530, Jatin K wrote: > I've got the following[1] script from the Internet ( by > googling ) > but it is not working :-( > > can anyone tell me what is wrong with it Not unless you explain what you mean by "not working". poc -- users mailing list users@lis

network monitoring script ...help

2010-06-17 Thread Jatin K
Hi all I've got the following[1] script from the Internet ( by googling ) but it is not working :-( can anyone tell me what is wrong with it [1]-- #!/bin/sh for host in `awk '/^[0-9]/ { print $1 }' /home/jk/nethost` do echo "Checking $host: \c" ping $h