VMS Help  —  RUN  Process  Examples
    1.$ RUN/PROCESS_NAME=SUBA   SCANLINE
      %RUN-S-PROC_ID, identification of created process is 00010044.

      In this example, the RUN command creates a subprocess named
      SUBA to run the image SCANLINE.EXE. The system gives the
      subprocess an identification number of 00010044.

    2.$ RUN/DELAY=3:30/OUTPUT=BALANCE.OUT BALANCE

      In this example, the RUN command creates a subprocess to run
      the image BALANCE.EXE 3 hours and 30 minutes from now; output
      is written to the file BALANCE.OUT.

    3.$ RUN/INTERVAL=1:40/PROCESS_NAME=STAT   STATCHK
      %RUN-S-PROC_ID, identification of created process is 00050023
         .
         .
         .
      $ CANCEL STAT

      In this example, the RUN command creates a subprocess named
      STAT to execute the image STATCHK.EXE. The process is scheduled
      to execute the image at intervals of 1 hour and 40 minutes.
      The process hibernates; however, because neither the /DELAY nor
      the /SCHEDULE qualifier is specified, the first wakeup request
      occurs immediately.

      The CANCEL command subsequently cancels the wakeup requests
      posted by the /INTERVAL qualifier. If the process is currently
      executing the image, it completes the execution and hibernates.

    4.$ RUN/PROCESS_NAME=LYRA  LYRA -
      _$/OUTPUT=_TTB3: -
      _$/ERROR=_TTB3:
      %RUN-S-PROC_ID, identification of created process is 000A002F

      In this example, the RUN command creates a subprocess named
      LYRA to execute the image LYRA.EXE. The /OUTPUT and /ERROR
      qualifiers assign equivalences to the logical names SYS$OUTPUT
      and SYS$ERROR for the subprocess. Any messages the subprocess
      writes to its default output devices are displayed on the
      terminal TTB3.

    5.$ RUN/UIC=[100,4]/PRIVILEGES=(SAME,NOPSWAPM) -
      _$/NORESOURCE_WAIT   OVERSEER
      %RUN-S-PROC_ID, identification of created process is 0001002C

      In this example, the RUN command creates a detached process
      to execute under the UIC [100,4]. The image OVERSEER.EXE is
      executed. The RUN command gives the process all the privileges
      of the current process, except the ability to alter its swap
      mode. The /NORESOURCE_WAIT qualifier disables resource wait
      mode for the process.
Close Help