From: Roland G. <rgi...@cp...> - 2006-12-22 12:33:25
|
Moving Expect objects between processes would mean moving open filehandles between processes, which IS possible on some architectures; but I don't know of a perl module that does that. This definitively would have a lot hack-value, but I doubt that it warrants the trouble... ;-) So yes, your idea with a connection manager server seems the most feasible.= .. Best regards, Roland On 12/20/06, HACKATHORN, TODD (SWBT) <th...@at...> wrote: > > > > > Hello, > > I am new to this group, but have been using Expect for Perl for some time > now. I am starting to think what I am trying to do is not going to work,= so > I thought I would ask the experts. > > > > What I am doing is: > > I use expect for Perl in centos 4.4, and Perl 5.8.5 I have a wrapper that > makes a object by spawning a s3270 process and allowing a interface like > get_string($row, $col, $len), put_string($str, $row, $col) and so on=85. = All > that has worked great for some time. > > > > I am trying to create a "connection manager" of sorts, it would keep 3 li= ve > connections up logged in and ready to go at all times, then when my clien= t > programs need a connection to our legacy 3270 systems, it would be able t= o > ask for an existing connection and start running with out the overhead ti= me > of logging in. Sounds easy enough. Where I am stuck is getting an Expec= t > object to move from one process to another. I have tried IPC::Sharable b= ut > it keeps giving me an error saying it can't use a GLOB, I guess that is w= hat > a reference to the Expect object is. My question is does anyone here kno= w > of a way I can convert this Expect object to a reference that can be pass= ed > in this way? Or is there a way I can export the connection as a normal f= ile > handle, and pass that reference to the other process and init a new Expec= t > object on a existing connection(already logged in)? > > > > I have though about making a client/server set up through TCP, the server > would open a connection, and do what ever is needed to keep it alive, the= n > the "worker processes" could send it simple request to put, and get strin= gs > and what not. But that seems like a lot of overhead. I already have a f= air > amount of overhead. I don't really want to go down the road of writing m= y > own 3270 emulator from scratch, the s3270 already works well. > > > > I greatly appreciate any advice, or suggestions you can give. > > > > Thanks, > > > > Todd Hackathorn > > Th...@at... > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > > _______________________________________________ > Expectperl-discuss mailing list > Exp...@li... > https://lists.sourceforge.net/lists/listinfo/expectperl-discuss > > > |