Skip Menu |

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

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

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

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



Subject: offer a context for session
Hi, Normally each call to cmd will open a new connection to remote server, which means such thing will easily be broken: <CODE> $c->cmd('cd <somewhere_other_than_home>'); $c->cmd('pwd'); </CODE> this case one has to do something like: <CODE> $c->cmd('cd <somewhere_other_than_home>; pwd'); </CODE> it works while very hard for debug inner scripts. I'd like to propose a shared-context session, holding just one active connection underlying. ---- BR, Dongxu
Net::SSH2 does what you want (look at the Channel object); this is too large a change to consider for Net::SSH::Perl at this point (maintenance-only).