* Zen and bad Karma with running an EXE in a .com
@ 1992-07-23 20:29 perry
1992-07-24 2:16 ` Terry Kennedy, Operations Mgr.
0 siblings, 1 reply; 2+ messages in thread
From: perry @ 1992-07-23 20:29 UTC (permalink / raw)
I thought this would be so easy..
The task:
Create a command procedure that will run an EXE in batch that is now being run
interactively. Easy enough, no full screen- just simple prompts.
The problem:
The program (a .EXE) is menu driven giving you options, then more menus
with more options. To go one back (pop up one menu, or exit), you hit the
CTRL-Z key. I cannot find the magic to make ctrl-z as important as it is
when in interactive mode.
You think ^Z is the same in either, right? So did I. But then explain why
the F10 key is the same as ^Z, when they are completely different keys (meaning
they send different sequences back to the vax) BTW- neither CTRL-Z or F10
seems to mean EXIT in batch.
The point is, the program wants the special input that hitting CTRL-Z or
F10 in interactive mode sends back to the program. Does anyone have any idea
how inbed it into a file?
I have tried:
1) putting the ^Z (not carrot Z but he real thing :-)
2) putting the F10 Escape sequence
3) Ripping my hair out and steadying my aim at the crt!
I'm open to suggestions. Source code for the .EXE is not availiable (3rd
party product). This simple, 1hour task has become a fiasco! Oh, here's an
example command file that is built by the command procedure:
$!
$DMS
1
3
059
069
^Z
^Z
$exit
where: DMS runs the program, 1 is shop maintenace, 3 is change shop, 059
is original shop number, 069 is new shop number, ^z [doesn't work] pops you
to the top menu, and ^z [again doesn't work] exits the program.
Any help by you Gurus would be appreciated!
ADV(thanks)ANCE
Perry
perry@drycas.club.cc.cmu.edu
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Zen and bad Karma with running an EXE in a .com
1992-07-23 20:29 Zen and bad Karma with running an EXE in a .com perry
@ 1992-07-24 2:16 ` Terry Kennedy, Operations Mgr.
0 siblings, 0 replies; 2+ messages in thread
From: Terry Kennedy, Operations Mgr. @ 1992-07-24 2:16 UTC (permalink / raw)
In article <1992Jul23.152903.1601@drycas.club.cc.cmu.edu>, perry@drycas.club.cc.cmu.edu writes:
> The program (a .EXE) is menu driven giving you options, then more menus
> with more options. To go one back (pop up one menu, or exit), you hit the
> CTRL-Z key. I cannot find the magic to make ctrl-z as important as it is
> when in interactive mode.
>
> You think ^Z is the same in either, right? So did I. But then explain why
> the F10 key is the same as ^Z, when they are completely different keys (meaning
> they send different sequences back to the vax) BTW- neither CTRL-Z or F10
> seems to mean EXIT in batch.
No, a ^Z from a terminal is translated to End Of File and that info is re-
turned to the application. If your VMS terminal type is set to one the models
that has an F10 key, the terminal driver maps F10 to EOF (note - not to ^Z).
There isn't an easy way to supply multiple EOF's to a program via a .COM
file (a single one is easy, you generate it when the next input line in the
.COM file starts with a $).
You probably want to investigate the PTY (pseudo-terminal) services in re-
cent VMS versions (5.4 and up, I think). This will let you run the program
on a pseudo-terminal, which you can control the input/output for.
Terry Kennedy Operations Manager, Academic Computing
terry@spcvxa.bitnet St. Peter's College, Jersey City, NJ USA
terry@spcvxa.spc.edu +1 201 915 9381
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1992-07-24 2:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-07-23 20:29 Zen and bad Karma with running an EXE in a .com perry
1992-07-24 2:16 ` Terry Kennedy, Operations Mgr.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox