[Info-vax] Check if a process will auto-terminate
Joseph Huber
joseph.huber at NIRWANA.web.de
Tue Apr 28 14:50:27 EDT 2009
Joseph Huber schrieb:
>
> But there is no way I know of to differentiate if the parent process has
> done a plain "SPAWN" or a "SPAWN @CMD".
> But I repeat: why is it important to know ?
> The only case where it matters is to avoid "SPAWN/NOWAIT @CMD".
>
Answering my own question: in fact there is a possibility, but not a
trivial one with supported DCL tools.
One could have a look into the parent processes DCL recall buffer to see
if the last command was a plain SPAWN without arguments.
To see another processes recall buffer can only be done with a CMKRNL
program. I don't have one ready, but I remember examples on one of the
freeware CDs.
--
Joseph Huber - http://www.huber-joseph.de
More information about the Info-vax
mailing list