[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

Passing parameters to detached process? ($creprc)

» close window

The Question is:

 
Is is possible to invoke a DCL com. file and pass it command line parameters
(i.e. P1,P2,etc..) using $creprc ?
 
 


The Answer is :

 
  No, there is no direct mechanism to pass parameters to a detached process.
  (A detached process does not necessarily have a command interpreter.)
 
  The usual approaches include using mailboxes, logical names in a shared
  table, global sections, the process name, embedding the information
  directly in the command procedure (assuming LOGINOUT is run) or various
  other mechanisms.
 
  Alternatively, consider $sndjbc in place of $creprc, or (if using $creprc
  to create a subprocess rather than a detached process) consider using
  lib$spawn and allowing symbols or logical names to be propogated into
  the subprocess.
 

answer written or last revised on ( 8-APR-1999 )

» close window