Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ucbvax!HAMLET.CALTECH.EDU!ken From: ken@HAMLET.CALTECH.EDU.UUCP Newsgroups: mod.computers.vax Subject: Re: LIB$SPAWN Message-ID: <870306160431.038@Hamlet.Caltech.Edu> Date: Fri, 6-Mar-87 19:08:24 EST Article-I.D.: Hamlet.870306160431.038 Posted: Fri Mar 6 19:08:24 1987 Date-Received: Sun, 8-Mar-87 17:25:59 EST Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Ken@Hamlet.Caltech.Edu (Kenneth Adelman) Distribution: world Organization: The ARPA Internet Lines: 18 Approved: info-vax@sri-kl.arpa > Does LIB$SPAWN work from a detached process? I have a simple program that > works fine until I try to RUN/DETACH. Any comments welcome. I have included > the code to illustrate. Sometimes. The spawn function is preformed by DCL (the CLI). If the detached process is started with loginout then it will have a CLI and be able to use LIB$SPAWN. If you start the process with RUN/DETACH PROGRAM.EXE the process does not have a CLI and cannot use LIB$SPAWN. If you start the process with RUN/DETACH SYS$SYSTEM:LOGINOUT/INPUT=PROGRAM.COM where PROGRAM.COM can be a one-liner of "$ RUN PROGRAM", then the LOGINOUT which runs before your program maps the CLI and your program can use LIB$SPAWN. Kenneth Adelman Caltech