Hi Gunnar,

                 I don't get 132 unable to connect host message.........but
i get this error message

Can't call method "exec" on an undefined value at
C:\perl-scripts\new_test\test.pl line 22, <$input> line 48.


I noted an another interesting thing, if i run the same script for the
second time, it will log into less number of hosts (for example when i ran
the script for the first time i logged into 52 hosts, when i ran for the
second time it logged in to only 47 hosts), i'm not sure why this is
happening can u please help me with this


I"m sorry for starting the new thread........i tried to understand the
solution but i couldn't understand much from it, i have used the used eval
to trap errors but after that i couldn't understand as i'm new to
perl.......can u help me understand that?



Thanks,
Monnappa


On Thu, Mar 12, 2009 at 5:40 AM, Gunnar Hjalmarsson <nore...@gunnar.cc>wrote:

> monnappa appaiah wrote:
>
>> Below is the script to login to multiple hosts and then execute the
>> command
>> and give the ouput in text file
>>
>> This script will login to all the hosts in input.txt(this file contains
>> around 137 hosts)
>>
>> but when i run the script....its giving me output for only 5 hosts whereas
>> input file has 137 hosts
>>
>> How can i make it to login to all the hosts in the input file and excute
>> commands? .......can somebody please help me with this?
>>
>
> Why did you start a new thread?
>
> Do you get 132 "Unable to connect host..." warning messages? If not, you'd
> better find out the *reason(s)* for the failures. Apply the solution you
> were given in the other thread.
>
> --
> Gunnar Hjalmarsson
> Email: http://www.gunnar.cc/cgi-bin/contact.pl
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>
>

Reply via email to