Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!hplabs!nsc!voder!cullsj!jayz From: jayz@cullsj.UUCP (Jay Zorzy) Newsgroups: comp.os.vms Subject: Re: Subprocess creation problem Message-ID: <317@cullsj.UUCP> Date: 26 May 88 17:15:40 GMT References: <8805240340.AA01194@ucbvax.Berkeley.EDU> Organization: Cullinet Software, San Jose, CA Lines: 25 From article <8805240340.AA01194@ucbvax.Berkeley.EDU>, by R022AF07@VB.CC.CMU.EDU (Andy Foulke): > I have been having a problem with a program creating a process > using CREPRC. If the output of the executable has been > redirected in ANY way it doesn't create the subprocess and execute > the commands in the datafile. I have included the coding of a > short pascal program and the datafile below. > . > . > . > If I use the /INPUT, /OUTPUT or /DETACH qualifier the program > doesn't create the log file and doesn`t execute the commands in > DETACH_PROG.DAT. It seems ANY redirection of I/O to the program > will cause the subprocess not to be created. Looking at your "Run" commands and your code for $CREPRC, you are using the JOB logical name SYS$LOGIN in the specs for your input, output, and error files. Since you are attempting to create a detached process, rather than a subprocess, this job logical name table is not available. Therefore, process creation fails upon attempt to open any of these files, and thus no log file. The only way you could find this out would be to use the Accounting utility -- it logs all process creations and reasons for termination. Jay Zorzy Cullinet Software San Jose, CA