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

Bob Koehler koehler at eisner.nospam.encompasserve.org
Wed Apr 29 09:34:01 EDT 2009


In article <gt7468$1rf2$1 at gwdu112.gwdg.de>, Joseph Huber <joseph.huber at NOSPAM.web.de> writes:
> Stephen Davies wrote:
> 
>> Hi,
>> 
>> Please could someone tell me if there is a simple way that a command file
>> can determine if it running in a process that will terminate as soon as
>> the command file exits.
>> 
>> eg, tell the difference between this:
>> $ spawn @CMD
>> 
>> and this:
>> $ spawn
>> $ @CMD
>> 
> Uh no, I would check if the executing proc has a master process:

   I don't think that really addresses the OP's issue.  If I underdstand
   correctly he does want the work done in a separate process.

   If so, the only solution I know is to create a detached process
   instead of a subprocess.

   That can be done via:

      $run/detached/input=cmd.com ... (fill in other qualifiers as
                                       needed)

   But, any DCL symbols and process or job logical names that the
   subprocess may need will need to be established in cmd.com since
   they will not be inherited.




More information about the Info-vax mailing list