[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::hackers_v1

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

464.0. "Can't run DCL from subprocess!" by COGITO::CRAIG () Tue May 05 1987 19:17

    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.RTitleUserPersonal
Name
DateLines
464.1ALBANY::KOZAKIEWICZYou can call me Al...Tue May 05 1987 20:012
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.2pass the CLICSC32::M_AMBERTue May 05 1987 21:544
    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.3CAFEIN::PFAUNow where did I leave my marbles?Tue May 05 1987 22:538
    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.4use LIB$SPAWN instead of SYS$CREPRCVIDEO::OSMANtype video::user$7:[osman]eric.sixWed May 06 1987 14:438
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