I'd like to modify some of my functions to simulate "ssh -q"
The module's sshopen2 routine looks like this
sub sshopen2 { my($host, $reader, $writer, @command) = @_; @ssh_options = &_ssh_options unless @ssh_options; open2($reader, $writer, $ssh, @ssh_options, $host, @command); }
i.e., the $ssh, @ssh_options, $host, @command constitutes the ssh command that's being run. @ssh_options doesn't seem to be accessible via the module's API (from what I can tell), but you could try to pass your -q option as the first element of the @command array. This should work because ssh accepts most options also after its host argument.
Alternatively, patch the module's _ssh_options routine to return the desired options... (Or even don't use the module at all, and simply run the ssh command yourself with open2)
In reply to Re: making NET:SSH quiet
by Anonyrnous Monk
in thread making NET:SSH quiet
by Stoomy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |