PI Problems

Bernard J. Duffy bernie at umbc5.umbc.edu
Sat Mar 3 03:39:24 AEST 1990


In article <17463 at boulder.Colorado.EDU> hartzell at boulder.Colorado.EDU (George Hartzell) writes:
>In article <51830 at sgi.sgi.com>, brendan at illyria (Brendan Eich) writes:
>>It seems xterm doesn't start a login shell (one with an initial "-" in
>>its argv[0] basename).  Only a login C-shell reads /etc/cshrc and .login,
>>similarly for sh and /etc/profile & .profile.  I don't know much about X;
>>perhaps there's an xterm option for logging in (creating a login shell,
>>updating /etc/utmp).
  ^^^^^^^^^^^^^^^^^^  - If this is the part where the user shows up in
the output from the "who" command, then this is done as the default setup.
In other words, the remote - into - xterm  sessions show up as interactive
terminal sessions.
>
>From the xterm man page on my MIPS:
>          -ls     This option indicates that the shell that is started
>                  in the xterm window be a login shell (i.e. the first
>                  character of argv[0] will be a dash, indicating to
>                  the shell that it should read the user's .login or
>                  .profile).
>
>g.
>George Hartzell			                  (303) 492-4535
> MCD Biology, University of Colorado-Boulder, Boulder, CO 80309
>hartzell at Boulder.Colorado.EDU  ..!{ncar,nbires}!boulder!hartzell

George / Brendan :
    Do you know of way to make all xterm-login  sessions run as a login
shell?  My goal is to provide a consistent login sequence from all the
"login", "rlogin", "telnet", and "xterm" sessions.  I've been using some
of the environment variables (like REMOTEHOST and DISPLAY), but they don't
cover the exceptions well enough to get around the cases where /etc/cshrc
doesn't get run.  As a system administrate for new unix users, it is of
great help to have a "system-wide" "cshrc" (/etc/cshrc) for all there
logins.  This way I can setup common system-wide aliases, umask-s, and
terminal setups like the correct  " stty erase  <char> " .  The latter
one is the biggest problem with Backspace and Delete characters in mix
environments (unix: ATT/SGI - ^H, BSD/Ultrix - ^?, non-unix: VMS - ^? ).
There might be a clean way around all of this if I could "bind" the back-
space key on the SGI (PC-AT) keyboard to send the char 127 (Delete).

      Thanks for your responses,  Bernie

Bernie Duffy   Systems Programmer II | Bitnet    :  BERNIE at UMBC2
Academic Computing - L005e           | Internet  :  BERNIE at UMBC2.UMBC.EDU
Univ. of Maryland Baltimore County   | UUCP      :  ...!uunet!umbc3!bernie
Baltimore, MD  21228   (U.S.A.)      | W: (301) 455-3231  H: (301) 744-2954 



More information about the Comp.sys.sgi mailing list