From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,ef08f9fcb473b885,start X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,ef08f9fcb473b885,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-07-25 02:53:09 PST Xref: gmd.de comp.os.vms:27408 comp.sys.dec:9051 Path: gmd.de!Germany.EU.net!news.dfn.de!darwin.sura.net!haven.umd.edu!uunet!pipex!uknet!comlab.ox.ac.uk!oxuniv!oxpath!jasper Newsgroups: comp.os.vms,comp.sys.dec Subject: getting remote host name for rsh commands Message-ID: <1993Jul24.110600.1@molbiol.ox.ac.uk> From: jasper@molbiol.ox.ac.uk (Jasper Rees - tel +44 865 275567) Date: 24 Jul 93 11:06:00 BST Organization: Oxford University Molecular Biology Data Centre Nntp-Posting-Host: kasia.path Hi, I am hoping to extract the fully qualified domain name from a remote host (Ultrix) running an rsh command to my VMS/UCX systems. The rsh daemon uses a BGnnnn device, which I thought could extract the information I want from a f$getdvi("sys$output","tt_accpornam") However, this returns a null for the BG device. If I derive the device name with f$getdvi("sys$output","devnam") then I can pass this to UCX and trap the output as a temporary file and extract the host name from this, except that it is trimmed off for longer names, and therefore not what I want. If anyone knows a better way to do this.... The rationale here is to be able to run a FileView (or other X application) from the VMS system to remote users on unix stations, without the complications (from the user point of view) of telneting in for a full login, and running vue$master locally. The alternative is to extract the node name for the unix system locally and pass it over, but this is not ideal because we really want one simple remote command for all the remote stations, not to have to give complex instructions or distribute scripts for this to them all. (I know this has security implications but unless someone has an implementation of xdm for VMS, or Kerebos for UCX then for the moment this is the best I'm going to manage). Many thanks for any ideas or help! regards, jasper Jasper Rees Oxford University Molecular Biology Data Centre and The Sir William Dunn School of Pathology jasper@molbiol.ox.ac.uk