Skip Menu |

This queue is for tickets about the Net-OpenSSH CPAN distribution.

Report information
The Basics
Id: 86466
Status: rejected
Priority: 0/
Queue: Net-OpenSSH

People
Owner: Nobody in particular
Requestors: business2008 [...] rodneybeede.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Feature Request: Add option to capture master stderr as scalar
Instead of being restricted to using a file handle I should be allowed to capture master_stderr_fh as a scalar variable instead. I don't want to deal with creating and cleaning up temporary files.
On Wed Jun 26 17:41:41 2013, rbeede wrote: Show quoted text
> Instead of being restricted to using a file handle I should be allowed > to capture master_stderr_fh as a scalar variable instead. > > I don't want to deal with creating and cleaning up temporary files.
The method capture2 does just that.
From: business2008 [...] rodneybeede.com
When making the call my $ssh = Net::OpenSSH->new($host); If the remote host is not in the known hosts then an error message is outputted to STDERR with "Host key verification failed.\r\n" by the ssh program. This call happens before capture2 and is NOT caught. In the end I used Capture::Tiny to get the error message into a Perl variable where I could check for this type of error and remind the user to add the remote to their known_hosts.
Subject: Re: [rt.cpan.org #86466] Feature Request: Add option to capture master stderr as scalar
Date: Thu, 27 Jun 2013 06:52:33 -0700 (PDT)
To: "bug-Net-OpenSSH [...] rt.cpan.org" <bug-Net-OpenSSH [...] rt.cpan.org>
From: Salvador Fandino <sfandino [...] yahoo.com>
Show quoted text
----- Original Message -----
> From: Rodney Beede via RT <bug-Net-OpenSSH@rt.cpan.org> > To: > Cc: > Sent: Thursday, June 27, 2013 3:42 PM > Subject: [rt.cpan.org #86466] Feature Request: Add option to capture master stderr as scalar > >       Queue: Net-OpenSSH > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=86466 > > > When making the call > > my $ssh = Net::OpenSSH->new($host); > > > If the remote host is not in the known hosts then an error message is outputted > to STDERR with "Host key verification failed.\r\n" by the ssh > program. > > This call happens before capture2 and is NOT caught.
Right, the problem is that this comes from the SSH master process that runs asynchronously, and so it can not be captured in a generic and reliable way.