Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!vax5!jhc From: jhc@vax5.CIT.CORNELL.EDU Newsgroups: comp.sys.next Subject: csh & the NeXTs Message-ID: <17953@vax5.CIT.CORNELL.EDU> Date: 14 Feb 89 04:54:32 GMT Sender: news@vax5.CIT.CORNELL.EDU Reply-To: jhc@Vax5.CIT.Cornell.EDU (James H. Cloos, Jr.) Distribution: na Organization: Cornell Information Technologies, Ithaca, NY 14853 Lines: 36 I just read thru the csh man pages on the NeXT. It looks like they have added functionality similar to tcsh's into csh. Specifically, if you set the variable editmode to emacs, you will be able to use emacs-like syntax to edit the current input line as well as the history. Whether a vi mode exists (yet?) wasn't specified, but it wouldn't hurt to try. (man csh for details.) I would like to add that a command to list the current bindings should be added. (If I missed it in the man pages, my appologies.) On another tangent, I would like to execute some commands on login iff I've loged in remotely, but don't know how to check this in .login. I have the following basic form: if (remote-login) then [execute some commands here] if (no-one-else-on) [execute some more commands here] endif endif where remote-login is true if I've rlogged in or telneted in, and no-one-else-on is true if anyone else who is logged in has also logged in via rlogin or telnet. (Ie, the [execute some more commands here] line(s) should not run if someone is logged in at the machine itself.) Is there any way to determine these from w/in a csh script? Thanks for any help. -JimC -- James H. Cloos, Jr. "Entropy isn't what it used to be." jhc@Crnlvax5.BITNET --c/o Fortune @ batcomputer.UUCP jhc@Vax5.CIT.Cornell.EDU #include cornell!vax1!vax5.cit.cornell.edu!jhc@rochester.UUCP B-7 Upson Hall, Cornell Univ., Ithaca, NY 14853 +1 607 272 4519