HPlogo Using NS 3000/iX Network Services: HP 3000 MPE/iX Computer Systems > Chapter 2 Virtual Terminal

Using the Remote Subsystem from a Batch Job

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

While in a batch job, you can establish a remote session by using the DSLINE or REMOTE HELLO command. The job streamed may be similar to the following (local and remote prompts are shown for clarity):

          JOB USER.ACCOUNT
:DSLINE REMOTE2
:REMOTE HELLO RUSER.RACCOUNT
:REMOTE
#FILE OUT;DEV=LP
#BUILD WORK;DISC=50
#RUN USERPROG
#PURGE WORK
#:
:REMOTE BYE
:DSLINE;CLOSE
:EOJ
NOTE: The remote # prompt is optional. It allows you to more easily identify remote commands in a job stream.

Remember that once a remote session has been established, it interacts with the job in the same way as it would interact with a terminal. If the remote session detects an error, the error will be printed to $STDLIST. If the error generates a user prompt, the next record in the job file is read as the response (in the same manner as waiting for a character or [Return] on a terminal). That record is then lost to the job.

Feedback to webmaster