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
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
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
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