HPlogo Process Management Programmer's Guide: 900 Series HP 3000 Computer Systems > Chapter 2 Process Management Tasks

Passing Information to a Process

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

When your program creates a process, it can programmatically pass information to the child process with:

  • The param parameter of the CREATE intrinsic

  • Item numbers 2 and/or 11 of the CREATEPROCESS intrinsic

  • The parm and/or info parameters of the :RUN command

The GETINFO intrinsic enables your program to retrieve this information.

This is an example of a GETINFO intrinsic call:

   GETINFO (INFO,MAXLENGTH,PARAMETER);

The parameters specified in the example are described below.

INFO

Returns the contents of the info parameter from the :RUN command or Item Number 11 from CREATEPROCESS.

MAXLENGTH

Passes the maximum number of characters that MPE/iX is allowed to move to INFO. MAXLENGTH returns the number of characters actually moved to INFO by MPE/iX. MPE/iX will not move a number of characters greater than the original value of MAXLENGTH.

PARAMETER

Returns the contents of the parm parameter from the :RUN command, item number 2 from CREATEPROCESS, or the param parameter from CREATE.

Feedback to webmaster