http://www.perlmonks.org?node_id=969527


in reply to -q option in Net::OpenSSH

So, according to the Net::OpenSSH docs,

quiet => 0

By default, scp is called with the quiet flag -q enabled in order to suppress progress information. This option allows reenabling the progress indication bar.

Is that what you tried? Can you show us your code, so we can replicate?

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Replies are listed 'Best First'.
Re^2: -q option in Net::OpenSSH
by web (Initiate) on May 23, 2012 at 17:13 UTC
    First of all, I was using SSH not SCP. And since the "quiet" option only applies to SCP, this suggestion, while appreciated, was not applicable. My code was initially using ssh_opts. I tried applying this as a hash option to $ssh->open2pty() but that did not work. I finally used the suggestion from "salva" to include master_stderr_discard => 1, in the %opts hash on the call to new(). Thanks again.