Re: [Ssh-sftp-perl-users] Guru's advice is needed regarding SSH2.pm
Brought to you by:
dbrobins
From: Alexander K. <ale...@gm...> - 2007-03-15 12:32:54
|
2007/3/15, David Robins <dbr...@cp...>: > On Wednesday March 14, 2007 02:35, Alexander Kolotov wrote: > > This question is not to users but to authors of Net:SSH:Perl module. > > > > Could anybody tell me why we duplicate STDIN in _session_channel of > > SSH2.pm please? > > I'm the current maintainer, but I don't know why we do that - it was there when I took over the code. > > Perhaps the better question is, what happens if we no longer do it? Will it break anything important? The _session_channel method is used by several methods of SSH2.pm module: cmd, shell, open2 in order to open client session channel. I can not say that will happen if we do not duplicate STDIN for these cases. It is really difficult to understand this module without any development documents and almost without comments. Maybe you can perform some tests without duplicated STDIN. I can say only that receiving of files through SFTP works fine in this case. -- Alexander Kolotov |