Path: utzoo!attcan!uunet!husc6!cmcl2!brl-adm!adm!rbj@cmr.icst.nbs.gov From: rbj@cmr.icst.nbs.gov (Root Boy Jim) Newsgroups: comp.unix.questions Subject: utility to determine rlogin? Message-ID: <16281@brl-adm.ARPA> Date: 23 Jun 88 22:44:47 GMT Sender: news@brl-adm.ARPA Lines: 32 ? From: Rick Lindsley? Jerry Peek writes: ? So, setting up my .login was easy. I put a test like this one in it: ? switch ("`ttykind`") ? case network: ? # do stuff for network login ? case xxx: ? # do stuff for xxx login ? default: ? ? In article <16109@brl-adm.ARPA> rbj@icst-cmr.arpa (Root Boy Jim) writes: ? ? Why not just do `switch ($term)'? You don't need ttykind, except for ? finding out *other* peoples terminal types. ? Because rlogin will pass the terminal type across for you. $term may not ? provide the information you want. ? Rick Well, I see your point, but still disagree. If I rlogin from a sun console to a VAX, why would I want anything other than a Sun termcap? (Root Boy) Jim Cottrell National Bureau of Standards Flamer's Hotline: (301) 975-5688 The opinions expressed are solely my own and do not reflect NBS policy or agreement Careful with that VAX Eugene!