TOPS-20 Commands Reference Manual

ERUN

Runs a system program without disturbing the program already in memory by placing the program in an ephemeral fork.

Format

@ERUN (PROGRAM) filespec

where:

filespec

is the file specification of a system program.

Default dev:<directory> - SYS:

Default .typ - .EXE

Characteristics

Characteristics of an Ephemeral Fork

The ERUN command runs a program in an ephemeral fork. A program that runs in an ephemeral fork acts like an EXEC command (excluding those EXEC commands that run programs or otherwise affect memory). Ephemeral forks and EXEC commands share these characteristics:

Good candidates for ephemeral forks are programs that may have short execution times and simply display information in a manner similar to the INFORMATION and SYSTAT commands.

Related Commands

INFORMATION LOGICAL-NAMES for examining the definition of SYS:
R for running executable programs stored on SYS:
RUN for running executable user programs
SET FILE EPHEMERAL for giving a file a permanent ephemeral attribute
SET PROGRAM EPHEMERAL for running a program in an ephemeral fork

Example

  1. Display the status of the fork in memory with the INFORMATION FORK-STATUS command. Then, run a program in an ephemeral fork in order to preserve the state of your job's memory. Redisplay the fork status and note that the ephemeral program has been reset and has not replaced the original fork.
    @INFORMATION FORK-STATUS
     => EMACS (1): HALT AT 50340, 0:00:03.6
    @ERUN TERMSTAT
    TERMSTAT>SHOW FREE TERMINALS
    
    Lab  Terminals in use  Free terminals
    ---  ----------------  --------------
    A          17               0
    B          12               4
    
    TERMSTAT>EXIT
    @INFORMATION FORK-STATUS
     => EMACS (1): HALT at 50340, 0:00:03.6