Re: [Ssh-sftp-perl-users] Ssh-sftp-perl-users Digest, Vol 4, Issue 4
Brought to you by:
dbrobins
From: U235Sentinel <u23...@gm...> - 2006-10-04 07:11:49
|
So I would do something like this? my $poll=$ssh->poll(1,'\stderr'); my $error->read('stderr',50,1); Basically I'm trying to setup a trigger to capture STDERR when it comes in. I'm trying to figure out how to use this to run a subroutine. Am I on the right track with this? Thanks a bunch! On 9/30/06, ssh...@li... < ssh...@li...> wrote: > > Send Ssh-sftp-perl-users mailing list submissions to > ssh...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > or, via email, send a message with subject or body 'help' to > ssh...@li... > > You can reach the person managing the list at > ssh...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ssh-sftp-perl-users digest..." > > > Today's Topics: > > 1. Re: net::ssh2 and register_handler (David Robins) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 29 Sep 2006 20:05:08 -0500 > From: David Robins <dbr...@cp...> > Subject: Re: [Ssh-sftp-perl-users] net::ssh2 and register_handler > To: ssh...@li... > Message-ID: <200...@cp...> > Content-Type: text/plain; charset="iso-8859-1" > > 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 > > > > ------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ------------------------------ > > _______________________________________________ > Ssh-sftp-perl-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > > > End of Ssh-sftp-perl-users Digest, Vol 4, Issue 4 > ************************************************* > |