From: CSBVAX::MRGATE!info-vax-RELAY@KL.SRI.COM@SMTP 4-JAN-1978 10:44 To: ARISIA::EVERHART Subj: Re: BITNET Mail follows Received: from CitHex.Caltech.Edu by KL.SRI.COM with TCP; Thu, 23 Jun 88 10:36:50 PDT Date: Thu, 23 Jun 88 10:40:00 PDT From: carl@CitHex.Caltech.Edu (Carl J Lydick) Message-Id: <880623102732.165d@CitHex.Caltech.Edu> Subject: Re: BITNET Mail follows In-Reply-To: Your message dated 16-Jun-1988 To: GHC%NIHKLMB.BITNET@CitHex.Caltech.Edu, info-vax@CitHex.Caltech.Edu > I am trying to spawn a subprocess in order to submit a batch job from a > detached process. The call to lib$spawn returns with LIB$_NOCLI. I have > tried the same sequence from an interactive process with success. I have > checked tha process quotas for the detached process and it has 2 subprocesses > permitted. The spawn command is on the next line > > ok = lib$spawn( full_spawn_cmd(1:full_spawn_cmd_l) ) > > and has the form "submit file/param=qw". > > Does anyone have any ideas about this problem? Yes, the error message you get says it all: %LIB-F-NOCLI, no CLI present to perform function LIB$SPAWN requires a Command-Language Interpreter (CLI), but there is no CLI present in your detached process. I conclude from this that you're starting the detached process with something like: $ RUN/DETACHED myprogram This starts up you program with no CLI. A workaround is to create a procedure (myprocedure.com) with the line: $ RUN myprogram Then start the detached process with a command of the form: $ RUN/INPUT=myprocedure.com/detached SYS$SYSTEM:LOGINOUT This creates a process complete with DCL as the CLI which then runs your program.