From: Blackstone, J. D. <jda...@ci...> - 2002-08-28 17:31:08
|
> -----Original Message----- > From: Debian User [mailto:bk2...@sk...] > Sent: Wednesday, August 28, 2002 12:25 PM > To: exp...@li... > Subject: [Expectperl-discuss] help with spawned xterm > > > Hello, > > I would like to spawn an xterm and then send messages to it. > > .... > .... > $pid=Expect->spawn("/usr/bin/xterm"); > # now send message to xterm > print $pid "Hello from parent"; > .... > > I get an xterm window with a shell prompt in it. > But i don't see my message in it. > Is there a way to do that ? > > Thanks. > > Pierre Bachelart. > > PS: I am using Expect-1.15 & Debian Woody I think this kind of thing is discussed in the book Exploring Expect by Don Libes. It's written for TCL Expect, but the general principles should be the same. I never tried it, but I think it involves allocating two pseudo-terminals and passing some special options to xterm. jdb |