Subject: | |
From: | |
Reply To: | |
Date: | Tue, 11 May 2010 16:35:25 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Note the variables won't exist if it's a local session. In the past
I've used the bound command to prevent command scripts from failing...
IF BOUND(HPVT_etc)
IF (HPVT_etc = "whatever")
etc
-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On
Behalf Of cathlene mcrae
Sent: 11 May 2010 16:21
To: [log in to unmask]
Subject: Re: [HP3000-L] Am I running in batch? (How to tell?)
Question:
How to determine the session was started from a remote job?
When a job is streamed on a system the hp variable set for the job are
as
follows:
HPSTREAMEDBY = CATHLENE,MGR.MCRAE (#S102) HPJOBTYPE = J HPINTERACTIVE
= FALSE
When the job does a dsline system and a remote hello the following
variables are set for the remote session:
:remote showvar
HPSTDIN_ACCESS_TYPE = NS/VT
HPVT_CLIENT_LDEV_NUM = JOB INPUT SPOOLER
HPVT_CLIENT_JOB_NUM = #J14
HPVT_CLIENT_JOB_NAME = MGR.MCRAE
HPINTERACTIVE = TRUE
HPJOBTYPE = S
HPSTREAMEDBY = CATHLENE,MGR.MCRAE (#S102)
The variable set when a session does a dsline system and a remote hello
are:
HPSTDIN_ACCESS_TYPE = NS/VT
HPVT_CLIENT_LDEV_NUM = 3
HPVT_CLIENT_JOB_NUM = #S102
HPVT_CLIENT_JOB_NAME = MGR.MCRAE
So the question how can you tell if a job or session started the remote
session?
Answer:
The hpvt_client_ldev_num will be may be set to "job input spooler " and
hpvt_client_job_num will be "#J".
Hope this answer's your question.
Cathlene Mc Rae
HP SR. Response Center Engineer
[log in to unmask]
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
The contents of this email are confidential to the intended recipient and may not be disclosed. Although it is believed that this email and any attachments are virus free, it is the responsibility of the recipient to confirm this.
Details of Smith & Williamson group companies and Nexia Smith & Williamson Audit Limited and their regulators (where applicable), can be found at this URL
http://www.smith.williamson.co.uk/disclosure
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|