[Ssh-sftp-perl-users] $ssh->cmd With multiple commands
Brought to you by:
dbrobins
From: Eric L. S. <esa...@vt...> - 2005-04-20 13:41:59
|
I have seen a couple of postings regarding this question; however, I could not find a clear answer or a working example in any of the postings. I am using Net::SSH::Perl with identity keys. I have validated connectivity and the successful execution of a command: my (@sshout) = $ssh->cmd("ls"); foreach (@sshout) { print "$_"; } What I would like to be able to do is open a connection to a given server and execute a series of commands, rather than open / close open / close etc. . . Can this be done and if so is there a working example? Thank you! Eric |