(LOGO.JPG) Python for OpenVMS

(go to: table of contents, index, list of vms_lib, prev: RESERVE_EF, next: SET_LOGICAL)


RUN_PROGRAM - Run New Program


Note that you will not be returned to Python. Not even when the program you wish to run does not exist! Please read the documentation for details.

Format:

    vms_lib.run_program (program_name)
Returns:

None

Arguments:

program_name
File name of the program to run in place of the current program (Python).
Examples:
>>> import vms_lib

>>> vms_lib.run_program ('SYS$SYSTEM:NCP.EXE')
NCP>

>>> vms_lib.run_program ('')
$

>>> vms_lib.run_program (None)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: argument 1: expected read-only buffer, None found

>>> vms_lib.run_program ('no-file')
%DCL-W-ACTIMAGE, error activating image NO-FILE
-CLI-E-IMAGEFNF, image file not found
DKA100:[PYTHON.PYTHON-1.4.VMS]NO-FILE.EXE;
$

(go to: table of contents, index, list of vms_lib, prev: RESERVE_EF, next: SET_LOGICAL)

30-SEP-1998 ZE.