[Info-vax] Check if a process will auto-terminate

Rob Brown mylastname at gmcl.com
Tue Apr 28 14:33:03 EDT 2009


On Tue, 28 Apr 2009 at 19:21 +0200, Joseph Huber wrote:

> Stephen Davies schrieb:
>> "Joseph Huber" <joseph.huber at NOSPAM.web.de> wrote in message 
>> news:gt7468$1rf2$1 at gwdu112.gwdg.de...
>>> Stephen Davies wrote:
>>> 
>>>> My current work-around is to use f$getjpi("", "LOGINTIM") and see 
>>>> if the process is less than a second old but I hope there's a 
>>>> better solution.
>>>> 
>>> Uh no, I would check if the executing proc has a master process:
>> 
>> That does not distinguish this:
>> $ spawn @CMD
>> 
>> from this:
>> $ spawn
>> $ @CMD
> Of course it does, the second @CMD executes in the master process,

Actually it doesn't.  As soon as you type SPAWN, your terminal is 
attached to the newly created sub-process, so the @CMD actually does 
execute in the sub-process.

I created a CMD.COM that displayed everything that F$GETJPI and 
F$ENVIRONMENT can do, plus SHOW PROCESS/ALL.  I'm with the OP.  Out of 
all that, the only thing that differentiates between the two cases is 
the difference between now and LOGINTIM.

Perhaps some other lexical tells us what the OP wants to know, but 
nothing looks obvious to me.

- Rob


-- 

Rob Brown                        b r o w n a t g m c l d o t c o m
G. Michaels Consulting Ltd.      (780)438-9343 (voice)
Edmonton                         (780)437-3367 (FAX)
                                  http://gmcl.com/




More information about the Info-vax mailing list