Skip Menu |

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

Report information
The Basics
Id: 42583
Status: resolved
Priority: 0/
Queue: Net-SSH-Perl

People
Owner: Nobody in particular
Requestors: john [...] sackheads.org
Cc:
AdminCc:

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



Subject: scp program
Date: Tue, 20 Jan 2009 17:29:12 -0500
To: bug-Net-SSH-Perl [...] rt.cpan.org
From: John Payne <john [...] sackheads.org>
In order to use a Net::SSH::Perl script as a program to scp (ie scp - S my_perl_script) there's a "bug" in SSH1.pm. We need stdin to get attached to the interactive part... but we're also not going to set stdin on the cmd() invocation. *** SSH1.pm.OLD Tue Jan 20 21:50:58 2009 --- SSH1.pm Tue Jan 20 21:51:25 2009 *************** *** 278,284 **** } $ssh->debug("Entering interactive session."); ! $ssh->_start_interactive(1); my($stdout, $stderr, $exit) = map $ssh->{"_cmd_$_"}, qw( stdout stderr exit ); --- 278,284 ---- } $ssh->debug("Entering interactive session."); ! $ssh->_start_interactive(defined $stdin ? 1 : 0); my($stdout, $stderr, $exit) = map $ssh->{"_cmd_$_"}, qw( stdout stderr exit );
This was fixed in v1.34. Steffen -- Steffen Schwigon <ss5@renormalist.net> Dresden Perl Mongers <http://dresden-pm.org/>