From: Austin S. <te...@of...> - 2002-12-03 17:26:01
|
On Tue, Dec 03, 2002 at 12:18:52PM -0500, Rogaski, Mark, ALCNS wrote: > : From: Austin Schutz [mailto:te...@of...] > :=20 > : On Tue, Dec 03, 2002 at 01:35:53PM -0200, Paulo Roberto wrote: > : > Hi, i=B4m from Brazil, and i try make interface program (with=20 > : terminal 3270) to web... > : >=20 > : > I have so problem, may someone could help me.... > : >=20 > : > I need execute e send commands to program, and pick up the=20 > : screen and show to user in web... > : > Execute i can, but pick up the screen and send command i don=B4t kn= ow > : > Down have the script ... > :=20 > : Try setting $Expect::Exp_Internal and $Expect::Debug=20 > : and see if those > : help show why it's not matching 'data: .*'. It may be, if=20 > : it's a curses client, > : that it doesn't actually print 'data: ' each time it puts new=20 > : data on the > : screen. > :=20 >=20 > I've worked with another control-character-happy interface, too. What = I usually do is use the UNIX 'script' utility to capture a manual session= , then I examine the captured data in 'less' (a recent, 8-bit capable rel= ease) or with 'cat -vAT' to figure out what sort of junk is being inserte= d in the text I'm trying to match. >=20 The control characters should be escaped when printed when exp_internal is used, for what that's worth. Either method _should_ work. Austin |