Re: Is there a way, in DCL, to find if I logged-in using ssh
From: amk (sumdavar_at_yahoo.com)
Date: 12/30/04
- Next message: John McIntyre: "OpenVMS Layered Products"
- Previous message: Robert Deininger: "Re: Supported Itanium hardware"
- In reply to: Peter 'EPLAN' LANGSTOEGER: "Re: Is there a way, in DCL, to find if I logged-in using ssh"
- Next in thread: Peter 'EPLAN' LANGSTOEGER: "Re: Is there a way, in DCL, to find if I logged-in using ssh"
- Reply: Peter 'EPLAN' LANGSTOEGER: "Re: Is there a way, in DCL, to find if I logged-in using ssh"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Dec 2004 05:01:30 -0800
Thank you all. With your help I've written the following DCL script,
which, for the time being, will be good enough for what I want:
(By the way: When working with DECterm from eXcursion/DECwindows, the
terminal name also starts with "FT", as does
a terminal name in a session with SSH)
$ is_ssh = "False"
$ station =
f$edit(f$extract(1,2,f$getdvi("tt","tt_phydevnam")),"upcase")
$ if (f$getdvi("tt","tt_accpornam") .eqs. "") .and. -
f$getdvi(tt","tt_secure") .and. -
(station .eqs. "FT") then is_ssh = "True"
$ ! Enable either Console, "Set host" or SSH:
$ if (station .eqs. "OP") .or. (station .eqs. "RT") .or. (is_ssh)
$ then
$ continue
$ else
$ logout
$ endif
- Next message: John McIntyre: "OpenVMS Layered Products"
- Previous message: Robert Deininger: "Re: Supported Itanium hardware"
- In reply to: Peter 'EPLAN' LANGSTOEGER: "Re: Is there a way, in DCL, to find if I logged-in using ssh"
- Next in thread: Peter 'EPLAN' LANGSTOEGER: "Re: Is there a way, in DCL, to find if I logged-in using ssh"
- Reply: Peter 'EPLAN' LANGSTOEGER: "Re: Is there a way, in DCL, to find if I logged-in using ssh"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|