Posted on 2006-11-20 15:34:40-08 by bhayward
Authen-Simple-SSH example request
Hi

Looking for an example.

The case where we need this is to ssh to anothter server, and issue two commands one after another, checking that the first executed alright before running the second. It needs to be in the same connection (cannot be connecting issue the first, disconnect, reconnect and issue the second - would not work in this case)

Help here would be appreciated.

Already know about perl ssh - does not work (load math module) on solaris.

Thanks

Bruce
Direct Responses: 3582 | Write a response
Posted on 2006-11-20 16:35:11-08 by bhayward in response to 3581
Re: Authen-Simple-SSH example request


Turns out using this module would not help either as it requires use Net::SSH::Perl; which requires Math/Pari.pm which does not load on Solaris.

Anyone know of ssh code (not a shell either) that is called in non-batch mode (holds the connection open until you are done issuing commands and then closes it?

Thanks

Bruce

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.