J
--Jani--
Hi all!
I'm trying to make connections (and run several commands) to several
machines with telnet.pm. Here's the example what my script does:
1. It reads all connection parameters ($ip, $username, $pwd) from
config-file into an @rray.
2. Foreach row (cell) it makes connection to $ip and logs in with
$username and $pwd.
3. It executes several commands, brings output into an @rray or file
and then exits the connection.
The problem is that if it fails to open connection (peer not respondin,
bad user etc) it exits the whole program. If I run the program without
using any telnet.pm funtions everything works fine, for example
printing variables on each cell of the @rray. So, could someone tell me
what do I have to change in telnet.pm (or in the way using it) to make
it work?
Thank you very much,
--Jani--
I'm trying to make connections (and run several commands) to several
machines with telnet.pm. Here's the example what my script does:
1. It reads all connection parameters ($ip, $username, $pwd) from
config-file into an @rray.
2. Foreach row (cell) it makes connection to $ip and logs in with
$username and $pwd.
3. It executes several commands, brings output into an @rray or file
and then exits the connection.
The problem is that if it fails to open connection (peer not respondin,
bad user etc) it exits the whole program. If I run the program without
using any telnet.pm funtions everything works fine, for example
printing variables on each cell of the @rray. So, could someone tell me
what do I have to change in telnet.pm (or in the way using it) to make
it work?
Thank you very much,
--Jani--