Title: | -={ H A C K E R S }=- |
Notice: | Write locked - see NOTED::HACKERS |
Moderator: | DIEHRD::MORRIS |
Created: | Thu Feb 20 1986 |
Last Modified: | Mon Aug 03 1992 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 680 |
Total number of notes: | 5456 |
Is there a way to execute a DCL command file from a fortran program which is running as a subprocess. When I use LIB$SPAWN, I get the error lib$nocli No CLI present to perform function. Note that an image run as a subprocess does not have a CLI. Any ideas????
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
464.1 | ALBANY::KOZAKIEWICZ | You can call me Al... | Tue May 05 1987 17:01 | 2 | |
You need to map a CLI into the subprocess. The only way I know how to do this is to use the $CREPRC system service. | |||||
464.2 | pass the CLI | CSC32::M_AMBER | Tue May 05 1987 18:54 | 4 | |
assuming you're doing another LIB$SPAWN from with the spawned Fortran program, you just pass the CLI as the 12th parameter. i.e. status = LIB$SPAWN("@procedure.com",,,,,,,,,,"DCL") | |||||
464.3 | CAFEIN::PFAU | Now where did I leave my marbles? | Tue May 05 1987 19:53 | 8 | |
But it requires the DCL CLI to handle the call to LIB$SPAWN. Try $CREPRC with SYS$SYSTEM:LOGINOUT.EXE as the image name. Either write the commands to a file and specify the file as input or create a mailbox, specify the mailbox as input and pass commands through it. tom_p | |||||
464.4 | use LIB$SPAWN instead of SYS$CREPRC | VIDEO::OSMAN | type video::user$7:[osman]eric.six | Wed May 06 1987 11:43 | 8 |
You say you're running your FORTRAN program in a subprocess. I suggest that you arrange for this subprocess to be created with LIB$SPAWN instead of SYS$CREPRC. That way, if the process tries to do DCL commands, they will work. /Eric |