Hi.

That's the approach I've been taking too.

I wonder if the problem you've come up against in the same I did?  There's
some redirection funny which required the second program to be invoked with
"rexx  progname" rather then just "progname".

prog1 | plink ... | rexx prog2

does seem to work.

i

------ Original Message ------
Received: 09:21 PM COT, 06/04/2009
From: "David Ruggles" <[email protected]>
To: "'Open Object Rexx Users'" <[email protected]>
Subject: Re: [Oorexx-users] oorexx and putty/plink

> I thought it might be possible to execute plink like so:
> Rexxprog | plink | rxqueue
> And use a multithreaded rexx program to read from the queue and write to
> standard out into plink through the pipe.
> 
> I could get either side to work (i.e. rexxprog | plink or plink | rxqueue)
> but it seemed to break down when I put all three into play. Not sure why,
> didn't try to debug since it wasn't simple. I did some searching and it
> looked like there might be some ole/com ssh client objects available that
> you would be able to use through Rexx's ole interface.
> 
> Thanks,
> 
> David Ruggles
> CCNA MCSE (NT) CNA A+
> Network Engineer      Safe Data, Inc.
> (910) 285-7200        [email protected]
> 
> 
> 
> -----Original Message-----
> From: Ian S. Worthington [mailto:[email protected]] 
> Sent: Wednesday, June 03, 2009 1:10 PM
> To: Open Object Rexx Users; David Ashley
> Subject: Re: [Oorexx-users] oorexx and putty/plink
> 
> 
> Hi David.
> 
> Unless I'm very much mistaken plink *is* an interface to putty which
enables
> it to read from sysin and write to sysout.
> 
> Surely I should be able to use that?
> 
> i
> 
> ------ Original Message ------
> Received: 11:50 AM COT, 06/03/2009
> From: David Ashley <[email protected]>
> To: Open Object Rexx Users <[email protected]>
> Subject: Re: [Oorexx-users] oorexx and putty/plink
> 
> > Ian S. Worthington wrote:
> > > Hi.
> > >
> > > I'd like to use oorexx to drive a telnet client, such as putty's plink,
> and
> > > process the responses, but I can't see how to hook a single program in
> the
> > > input and output of that.
> > >
> > > What do I need as glue, if anything, between oorexx and plink?
> > >
> > >
> > > ian 
> > > ... 
> > >
> > > Ian S. Worthington, MBCS.
> > >
> > > me:     http://isw.me.uk/ 
> > > photos: http://gallery.isw.me.uk/ 
> > >
> > >
> > > Free 2GB online backups:
> > >   https://mozy.com/?code=HJW4C8 (code gets you 256MB extra)
> > >
> > > Web hosting and support from $2.99/month:
> > >   www.cirtexhosting.com/affiliates/idevaffiliate.php?id=463
> > >
> > >
> > > Dulce et decorum est pro patria mori, sed dulcius pro patria vivere, et
> > > dulcissimus pro patria biber. Ergo, bibiamo pro salute patriae.
> > >
> > >
> > >
> > >
> > >
>
----------------------------------------------------------------------------
> --
> > > OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
> > > looking to deploy the next generation of Solaris that includes the
> latest
> 
> > > innovations from Sun and the OpenSource community. Download a copy and 
> > > enjoy capabilities such as Networking, Storage and Virtualization. 
> > > Go to: http://p.sf.net/sfu/opensolaris-get
> > > _______________________________________________
> > > Oorexx-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/oorexx-users
> > >
> > >   
> > Ian -
> > 
> > It is more complicated than that.
> > 
> > If the telnet program you are using provides a Rexx programmable 
> > interface (an API) then you would use that to hook in Rexx exits to 
> > perform processing for the I/O. But so far as I know there is not telnet 
> > client program that exist that includes Rexx as a programmable interface.
> > 
> > So the only other alternative is to write a telnet client in Rexx. This 
> > is not an easy task and requires intimate knowledge of terminal types 
> > and other difficult topics. It is probably the reason nobody has stepped 
> > up to this task.
> > 
> > Bottom line - unless you are willing to step up to the plate and write a 
> > telnet client in Rexx or add Rexx API interfaces to an existing open 
> > source telnet client I believe you are out of luck. But if you are 
> > willing to take on this task I would be willing to supply you with what 
> > support I can offer.
> > 
> > David Ashley
> > 
> >
>
----------------------------------------------------------------------------
> --
> > OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
> > looking to deploy the next generation of Solaris that includes the latest

> > innovations from Sun and the OpenSource community. Download a copy and 
> > enjoy capabilities such as Networking, Storage and Virtualization. 
> > Go to: http://p.sf.net/sfu/opensolaris-get
> > _______________________________________________
> > Oorexx-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/oorexx-users
> > 
> 
> 
> 
> 
>
----------------------------------------------------------------------------
> --
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
> looking to deploy the next generation of Solaris that includes the latest 
> innovations from Sun and the OpenSource community. Download a copy and 
> enjoy capabilities such as Networking, Storage and Virtualization. 
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________
> Oorexx-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
> 
> 
>
------------------------------------------------------------------------------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
> looking to deploy the next generation of Solaris that includes the latest 
> innovations from Sun and the OpenSource community. Download a copy and 
> enjoy capabilities such as Networking, Storage and Virtualization. 
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________
> Oorexx-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
> 




------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to