Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!stanford.edu!unix!synoptics!franks From: franks@synoptics.com (Frank Stutzman) Newsgroups: comp.sys.hp Subject: Re: determining original host Message-ID: <22258@mvis1.com> Date: 1 Apr 91 19:21:54 GMT Article-I.D.: mvis1.22258 References: <822@tiamat.fsc.com> Sender: news@synoptics.COM Lines: 38 In article <822@tiamat.fsc.com>, jim@tiamat.fsc.com ( IT Manager) writes: |> Personally, I wish rsh and rlogin would just pass the entire environment, and |> let the remote host set it's own local stuff, with everything else remaining |> the same. Is'nt this what the 'on' command is supposed to do? I've never used it much but that is the idea that you get from the man pages. Of course, the big problem with it is that you have to have nfs up. BTW, on the original question, as of 7.0 the /etc/utmp file does have information on where a virtual terminal connection (rlogin, telnet, whatnot) came from (i.e. the host who origniated it). Unfortunately, there are no shipped utilites that will dig this out for you. Take a look at /usr/include/utmp.h. The entry for that has UNSUPPORTED stamped all over it, but I've seen it work. |=======================================|-----------------------------| | |Frank Stutzman | | |SynOptics Communications, Inc | "arp, arp, arp" The mating | |Product Support | call of the lonely packet. | |Santa Clara, Ca | --- Mike Powell | |frank@synoptics.com | | |=======================================|-----------------------------| |