>> I have an application EXE tool that runs and put's the output to the scre=
>en (smg)
>>=20
>> The problem is the tool will not exit unless a Control C/Y is entered (it=
> scans for input for various functions)
>>=20
>> I would dearly love to capture the output to a file for future scanning f=
>or automation but am having issues figuring out how to do this
>>=20
>> i.e.
>> tool :=3D=3D "exe_location:image.exe"
>>=20
>> tool <displays output but sits there waiting for control C/Y>
>>=20
>> I have tried...
>>=20
>> - define sys$output doesn't work, wait's for control C/Y to exit
>> - pipe doesn't work because it has the same issue as above
>> - spawn is equally of no help nor is run/detach
>> - ssh didn't help either, the screen became totally unresponsive
>> - pipe tool < x.x but that didn't work either (error message about couldn=
>'t initialize cursors). I was trying to pipe into the EXE a file x.x (with =
>the idea of adding Control C/Y to a file, didn't know how to add Control C/=
>Y to the x.x file anyhow)
>>=20
>> I thought perhaps some type of set host / log to the same node to execute=
> the command and then having the process killed as a long shot but gave up
>>=20
>> I do not have access to the source code so I cannot re-code the functiona=
>lity
>>=20
>> Is there some wrapper code (I'd even take Jazz, Electro Swing, but not he=
>avy metal, my days of that are well and truly over!) out there that I can e=
>ncapsulate this in perhaps to make it think it's writing to a screen device=
> when it's not or some other simple way of doing this?
>
>Ian,
>
>The possible solutions are limited by the fact that the program is a "black=
> box", with the source code unavailable.
>
>There are two approaches that may allow you to address this problem, unfort=
>unately, neither is trivial.
>
>First, one could use the scripting facility of a terminal program (e.g., Ke=
>rmit) to programmatically interact with the program. There is a full book o=
>n Kermit which includes a description of its scripting capabilities.
>
>The second approach is to use the OpenVMS Pseudoterminal driver (see http:/=
>/
h71000.www7.hp.com/doc/84final/ba554_90018/ch06.html). This driver allows =
>full programming of the dialogue. I do not know if there are issues with th=
>e combination of SMG and the pseudoterminal driver.
Pseudo-terminals ought to keep him busy for a long while. If that SMG$ output
does any screen manipulation, he'll have to handle escape sequences that would
occur. Don't get me wrong, I too would suggest your pseudo-terminal approach
but it's not something that will solve his problem without effort; especially,
if Ian is not a programmer and he's never used the pseudo-terminal previously.
Of course, I'm available for hire and I'm very, very familiar with the OpenVMS
pseudo-terminal, and I've already dealt with the escape sequence problems. ;)
--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG
I speak to machines with the voice of humanity.