Skip Menu |

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

Report information
The Basics
Id: 58027
Status: resolved
Worked: 1.5 hours (90 min)
Priority: 0/
Queue: Net-SFTP-Foreign

People
Owner: Nobody in particular
Requestors: XSAWYERX [...] cpan.org
Cc:
AdminCc:

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



Subject: quiet or verbose option
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"
Subject: Re: [rt.cpan.org #58027] quiet or verbose option
Date: Sat, 5 Jun 2010 01:22:09 -0700 (PDT)
To: bug-Net-SFTP-Foreign [...] rt.cpan.org
From: Salvador Fandino <sfandino [...] yahoo.com>
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"
stderr_discard is now supported