Hi,
The current development version has support for redirecting stderr to a custom file:
open my $dev_null, '>', '/dev/null';
$sftp = Net::SFTP::Foreign->new(..., stderr_fh => $dev_null);
Maybe I should add another option just to simplify this case.
Cheers,
- Salva
Show quoted text----- Original Message ----
> From: Sawyer X via RT <bug-Net-SFTP-Foreign@rt.cpan.org>
> Sent: Wed, June 2, 2010 12:18:02 AM
> Subject: [rt.cpan.org #58027] quiet or verbose option
>
> Tue Jun 01 18:18:02 2010: Request 58027 was acted upon.
Transaction: Ticket
> created by xsawyerx
Queue: Net-SFTP-Foreign
> Subject: quiet or verbose option
Broken in: (no
> value)
Severity: Wishlist
Owner:
> Nobody
Requestors:
> href="mailto:XSAWYERX@cpan.org">XSAWYERX@cpan.org
> Status: new
Ticket <URL:
> href="https://rt.cpan.org/Ticket/Display.html?id=58027" target=_blank
Currently
> if you have problems with the connection, ssh will spew errors
onto your
> output. This makes very difficult to use in a test script
without enclosing
> it with some output redirection tool.
It would be nice if either this
> would be off by default (and enabled
with "verbose => 1") or enabled by
> default (and disabled with "quiet => 1").
Case in point:
"ssh:
> connect to host 1.2.3.4 port 22: Connection timed out"