Creating an Automated Mechanism [ HP Motif/iX System Administrator's Supplement ] MPE/iX 5.0 Documentation
HP Motif/iX System Administrator's Supplement
Creating an Automated Mechanism
You can automate the X client invocation process by using the batch
processing facility of the HP 3000 host in conjunction with vt3k's
capability to accept input from a file.
The use of a batch job is recommended because it does not require a live
session during the life of an X client. When an X client is invoked from
a batch job and completes its execution, the logon to the HP 3000 is
automatically disconnected. This is not so if the client is invoked from
an HP 3000 session. In this case, when the X client terminates its
execution, the control returns to the session, and the user must perform
an explicit logoff.
This three-step process is outlined below:
1. Prepare the HP 3000 system by creating a job file on the HP 3000
host system.
2. Prepare the workstation by creating an input file to the vt3k
program on the HP-UX server system.
3. Invoke vt3k, instructing it to read its input from the file that
you created in step 2.
Each of these steps is described below.
To prepare the HP 3000 system
As a first step in the task of automating the invocation of a client, you
must create a job file on the HP 3000 host machine. The file should
reside in the same logon as the client application that you wish to
invoke.
To create a batch job on the HP 3000 use an editor program to create a
job file. Include in that file the command line to invoke the desired
application. Remember to supply to the application all of the necessary
parameters, such as the display address.
Here is what a simple MPE/iX batch job named jpizza looks like. It
executes the application pizza whenever it is invoked.
!JOB jpizza,user/password.account/password
!pizza "-display HPMYDISP:0.0"
!EOJ
You should supply any passwords that are associated with the logon that
you specify in the first line of the job file.
To invoke this job, enter
:STREAM jpizza
at the MPE/iX's CI prompt.
To prepare the HP-UX system
On the workstation, you must create a file whose contents will be used as
input to the vt3k connectivity program. This file must contain MPE/iX
commands that will be issued by vt3k to the HP 3000 after it establishes
a connection to the HP 3000.
Let's say that you have created the file pizzago in your home directory
on the server system. In it you have placed the following instructions
to vt3k:
HELLO user/password.account/password
STREAM jpizza
To invoke vt3k
From now on, whenever you invoke vt3k and instruct it to get its input
from the pizzago file, it does the following:
1. Establishes a connection with the HP 3000 host system.
2. Logs on to the account user.account.
3. Executes the batch job jpizza, which in turn invokes the pizza
client.
MPE/iX 5.0 Documentation