in reply to Re^2: making NET:SSH quiet
in thread making NET:SSH quiet
The example provided accounts for a more robust solution, which allows for one to extend to suit their design goals
The piece of code you have posted suffer from the same problem, it may suit your needs but it is not the solution to all Perl & SSH tasks.
It has several limitations: no connection reuse, no password authentication, no passphrases, no synchronization between different workers, no command quoting, usage of highly insecure options, wrong handling of hung sessions, etc.
Also, this solution can easily be extended to Secure Copy, as this would just be another command to run.
Almost any SSH module available from CPAN already supports SCP and/or SFTP out of the box.
Really, you should get more familiar with the SSH modules available from CPAN, specially the new ones. They are better than what you think!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: making NET:SSH quiet
by DeadPoet (Scribe) on Jan 12, 2011 at 18:36 UTC | |
by salva (Canon) on Jan 13, 2011 at 09:57 UTC |