Re: [Ssh-sftp-perl-users] net::ssh2 and register_handler
Brought to you by:
dbrobins
|
From: David R. <dbr...@cp...> - 2006-09-30 03:16:19
|
On Wednesday September 27, 2006 16:18, U235Sentinel wrote:
> In NET::SSH::PERL we had a "register handler" method we could call which
> I've used to trigger a subroutine when we receive STDERR traffic. Is there
> some way to do this with NET::SSH2?
>
> The NET::SSH::PERL module had the following defined for the method:
>
> sub register_handler { }
>
> I'm presuming the code is found elsewhere (maybe this is a regular Perl
> method?)
>
> Any help/tips on where I could follow up on this is greatly appreciated.
> Thanks!
Not in the same way, but if you look at the poll method you can get stderr events, and Net::SSH2::Channel lets you read stderr separately (see perldoc).
--
Dave
Isa. 40:31
|