jspeer
29th January 2003, 22:25
I am attempting to write an expect script that will run via cron in our unix environment to send the encessary inputs into the finalization screens but I am getting hung up on the cntl-z (zoom) function.

thus far I have sent:
\032
\x1A
^Z
on the expect send command and nothing gets me to the secondary window where I can select batches for Finialization.

I am running out of ideas so if someone can point me towards a possible solution I would be grateful.

Thanks

dnnslbrwn
29th January 2003, 23:00
Wow... long time since I heard of anyone using expect!

I can't offer any help there, but have you looked at using AFS (there is a discussion group about it here on BAANBOARD). With AFS, you can code a new session in such a way that it 'controls' existing sessions (eg: fills fields, presses contine, saves records...)

Just a thought.

Cheers,

-Dennis

jspeer
29th January 2003, 23:11
More info:

I am not a baan programmer :) and we do not have one on staff. I am using Unix scripting since this is something I know and understand (or did at one time in my life).

I am not sure if AFS requires access to the Baan source code. If yes, then it is not a solution since we do not have source code.

Thanks

dnnslbrwn
29th January 2003, 23:28
That is the beauty of AFS, it can 'run' any BAAN session without the source code. You just supply the values to fill in the fields and let it go. I was amazed the first time I tried it.

Now if you are not a programmer at all, that is a problem as it will first require basic BAAN programming skills. Now, there are SO many BAAN programmers out there begging for work that you should have no problem finding someone who will do this as a one or two day project.

Cheers,

-Dennis

jspeer
30th January 2003, 20:14
I understand your interest in helping but I really just want to proceed with the solution presented here.

Any old Expect programmers in the house?

Thanks

günther
3rd February 2003, 16:39
Hi,

I have been sucessful in controlling PCF by tcl/tk and expect, and I can understand that you don't want to check AFS. It won't be that easy as it sounds ...

Just a thought: Control-Z might be the character that lets you put a running process in background; try "$ stty -a", if you see "susp = ^Z" you should change that character.

Good luck!
günther

maxime
5th February 2003, 18:53
Please try using Ctrl - B for zooming purposes. If Ctrl - B does not work then try programming for the F4 key.

Maxime.