in reply to Get Perl packages

Automating the regular ssh client will be much easier with Expect than with IPC::Open2...


We're not surrounded, we're in a target-rich environment!

Replies are listed 'Best First'.
Re^2: Get Perl packages
by Mencial (Initiate) on Jun 13, 2007 at 21:13 UTC

    I want to do SSH inside a Perl program because I want to do some complex stuff with the open SSH later.

    Like connect to 8 different machines, dive into directories, check what files are there, and depending on those files and in some stored values and on input parameters, run some Perl scripts on those remote files, get the results, process them, aggregate the results from the 8 different machines, and present them back.

    All this without being able to install anything in the remote machines, they are Production and cannot be touched.

    I do not know Expect that well, but I think I do need Perl for this.