Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!CITHEX.CALTECH.EDU!carl From: carl@CITHEX.CALTECH.EDU (Carl J Lydick) Newsgroups: comp.os.vms Subject: Re: BITNET Mail follows Message-ID: <880623102732.165d@CitHex.Caltech.Edu> Date: 23 Jun 88 17:40:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 26 > 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.