-
tcsh login shell invoked.
- reads
/etc/.cshrc:
contents of out/etc.cshrc...
# Standard C-shell startup actions for eecs.tufts.edu
#
# This file will be changed from time to time, so if you wish to modify its
# effects it is better to run this and then change things than to copy and
# modify this file.
# check if this person is allowed in; block if not
if (-f /etc/csh.people) then
set tcshAllowed = 0
foreach tcshPerson (`/bin/cat /etc/csh.people`)
if ($tcshPerson == $USER) then
set tcshAllowed = 1
endif
end
if ($tcshAllowed == 0) then
echo Sorry, you are not allowed to login to `/bin/hostname`
echo Please use a timesharing server instead!
sleep 4
exec /bin/false
endif
unset tcshAllowed
unset tcshPerson
endif
set autologout=60
limit coredumpsize 1m
# Set up CLASSES environment variable if not already set up.
# This only happens at login time.
# If you `unsetenv CLASSES' then every shell instance will set it again.
# To disable the list of classes you must `setenv CLASSES ""'.
if (! $?CLASSES) then
# Get a list of classes I belong to. This takes a little time.
if (-r /local/etc/ac-classes) then
set Classes = (`awk '$3=="'$user'"{print $2}' /local/etc/ac-classes`)
else
set Classes=
endif
# If there are any, then put the list into the environment separated with :
if ($#Classes > 0) then
setenv CLASS $Classes[1]
setenv CLASSES `echo $Classes | tr ' ' ':'`
# If not, set environment variable empty so we do not check again
else
set Classes=
setenv CLASSES ""
endif
else
# Convert environment variable to shell variable
set Classes=(`echo $CLASSES | tr ":" " "`)
endif
# set up standard paths without the window system
set path=(. ~/bin ~ /local/bin /local/games /usr/bin /usr/ucb /usr/ccs/bin /local/hosts)
setenv MANPATH /local/man:/usr/share/man
setenv LD_LIBRARY_PATH /local/lib:/usr/ccs/lib
# modify standard paths for X windows
setenv LD_LIBRARY_PATH /loc/X11/lib:$LD_LIBRARY_PATH
# modify standard paths for Sun Motif runtime package
setenv LD_LIBRARY_PATH /usr/dt/lib:$LD_LIBRARY_PATH
# modify standard paths for OpenWindows
# commenting these statements out will disable OpenWindows
if (! $?OPENWINHOME) setenv OPENWINHOME /usr/openwin
# put the openwin bins behind local bins and ahead of system bins
set path=($path[1-5] ${OPENWINHOME}/bin $path[6-])
setenv MANPATH ${MANPATH}:${OPENWINHOME}/share/man
# openwin libraries take precedence over x11 libraries in /local/lib
setenv LD_LIBRARY_PATH ${OPENWINHOME}/lib:${LD_LIBRARY_PATH}
setenv FONTPATH ${OPENWINHOME}/lib/fonts
setenv HELPPATH ${OPENWINHOME}/lib/help
# add local app-defaults
# dert 1999-09-23
setenv XAPPLRESDIR /local/X11/lib/X11/app-defaults
# modify standard paths for subarchitecture-dependent code.
# this code is stored in /local/mach/<machine>/bin for each
# machine as specified in uname -n
set host = `uname -n`
if ( -d /local/mach/$host/bin ) then
set path=($path[1-3] /local/mach/$host/bin $path[4-])
endif
if (-d /local/mach/$host/lib ) then
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/local/mach/$host/lib
endif
if (-d /local/mach/$host/man ) then
setenv MANPATH ${MANPATH}:/local/mach/$host/man
endif
unset host
# put in os-revision-dependent stuff if present
# this code is stored in /local/solaris/<revision>/bin for each
# for each Solaris revision as specified in uname -r
set rev = `uname -r`
if ( -d /local/sol/$rev/bin ) then
set path=($path[1-3] /local/sol/$rev/bin $path[4-])
endif
if (-d /local/sol/$rev/lib ) then
setenv LD_LIBRARY_PATH /local/sol/$rev/lib:${LD_LIBRARY_PATH}
endif
if (-d /local/sol/$rev/man ) then
setenv MANPATH /local/sol/$rev/man:${MANPATH}
endif
unset rev
# Use other script to invoke class-specific cshrc files.
# This is done this way so that anyone can run the script explicitly.
if ($#Classes > 0) then
if(x$Classes[1] != x && -r /local/etc/class.cshrc) then
# Invoke class-specific cshrc files.
source /local/etc/class.cshrc
endif
endif
# Release shell variable, leave environment variable around
unset Classes
# special alias allows users to decide what packages to use.
alias use 'set packages = ( \!* ) ; source /local/lib/use'
### This was taking too much login time due to disk cacheing;
### I disabled it 3/21/98 alc
### use -q frame idl magic meta speedsim
### use -q frame idl magic
use -q netscape
...end of out/etc.cshrc
- which in turn reads
/local/etc/Class_cshrc
contents of out/Class_cshrc...
#! /bin/tcsh -fb
# Class-specific shell startup actions for cs.tufts.edu
#
# This file should be sourced after the shell variable CLASSES has been
# set up as a word list of classes: e.g. `setenv CLASSES 11:15:280; source...'
# As a side effect, this script kills the variables Classes and TheClass
if ($?CLASSES) then
# Convert environment variable to shell variable
set Classes=(`echo $CLASSES | tr ":" " "`)
# If there are any appropriate classes,
if ($?Classes) then
if ($#Classes > 0) then
if (x$Classes[1] != x) then
# Invoke class-specific cshrc files
foreach TheClass ($Classes)
if (-r /g/$TheClass/Class_cshrc) source /g/$TheClass/Class_cshrc
end
unset TheClass
endif
endif
endif
endif
...end of out/Class_cshrc
- reads
~/.cshrc:
contents of out/home.cshrc...
# C-shell and T-shell initialization file for Tufts University
#######################################################################
# This file controls options and behavior of the command interpreter,
# by executing a standard script that is the same for all users.
#
# To customize your shell, either
# 1) (preferred) add your personal preferences to the end
# of this file, after the line `source /local/etc/standard.cshrc'
# 2) (advanced) replace this file by the standard script
# /local/etc/standard.cshrc and edit it to suit your own tastes.
#
# To do 2), while in your home,
# a) cp /local/etc/standard.cshrc .cshrc
# b) emacs .cshrc (to make changes).
# But if you mess up your environment, so that nothing works,
# you must restore the old state of your account by:
# c) cp /local/etc/template.cshrc .cshrc
#######################################################################
# Execute the standard startup file.
source /local/etc/standard.cshrc
# Put your own custom commands here --
# uncomment the following ones for some common abbreviations
# alias a alias
# alias h history
# alias m more
# alias e emacs
...end of out/home.cshrc
- which in turn reads
/local/etc/standard.cshrc:
contents of out/standard.cshrc...
# @(#)Cshrc 1.1 86/01/06 SMI;
#################################################################
#
# .cshrc file
#
# initial setups for both interactive and noninteractive
# C-Shells
#
#################################################################
# If executing the normal C-shell, still read system-wide init file
if ($?SHELL != 0) then
if ($SHELL == /bin/csh && -r /etc/csh.cshrc) source /etc/csh.cshrc
endif
# Set default file protection off limits to others
umask 077
# Exit this script if this is not an interactive shell
if ($?USER == 0 || $?prompt == 0) exit
# Enable shell histories
set history=50
set savehist=50
# Enable filename completion in case you use csh instead of default tcsh
# (the ESCAPE key will try to finish file names)
set filec
# Limit core dumps to something reasonable (3 Megabytes) just to avoid
# accidentally creating huge useless files.
limit coredumpsize 3m
# To allow control-D for logout, comment out the following line.
set ignoreeof
# Use a prompt like presto{bjones}1:
if ("$prompt" == "> " || "$prompt" == "% ") set prompt="`uname -n`{`whoami`}\!: "
# To shorten some common commands, un-comment the following lines.
# alias a alias
# alias h history
# alias m more
# figure out operating system from uname command
set opsys = `/usr/bin/uname -s`
# Sun Microsystems Special initialization
if ($opsys == 'SunOs') then
# execute these commands on all SunOS systems:
# disable job control : comment out these two lines to enable it.
stty susp undef
stty dsusp undef
# Silicon Graphics Special initialization
else if ($opsys == 'IRIX') then
# execute these commands on ALL IRIX systems:
if (`/usr/bin/uname -r | /usr/bin/awk -F. '{print $1}'` >=6) then
# execute these commands on IRIX 6.x systems and above:
# disable job control : comment out these two lines to enable it.
stty susp undef
stty dsusp undef
else
# execute these commands on IRIX 5.x systems and below:
# disable job control : comment out these two lines to enable it.
stty susp ^
stty dsusp ^
endif
# Dec Alpha Special initialization
else if ($opsys == 'OSF1') then
# execute these commands on ALL OSF/1 systems:
# disable job control : comment out these two lines to enable it.
stty susp undef
stty dsusp undef
# Dec MIPS Special initialization
else if ($opsys == 'ULTRIX') then
# execute these commands on ALL ULTRIX systems:
# disable job control : comment out these two lines to enable it.
stty susp undef
stty dsusp undef
endif
unset opsys
...end of out/standard.cshrc
- Then the shell reads
/etc/.login:
contents of out/etc.login...
# Standard login actions for eecs.tufts.edu
#
# This file will be changed from time to time, so if you wish to modify its
# effects it is better to run this and then change things than to copy and
# modify this file.
# keep people out during system work
if (-f /etc/nologin) then
echo No logins -- system is not available for general use.
echo Please try again later.
sleep 4
logout
endif
# show messages of the day
/usr/bin/cat /etc/motd
if (-f /local/bin/motd && -d /g/motd/news) then
/local/bin/motd -sq all
endif
# Use class.login script to invoke class-specific login files.
# This is done this way so that anyone can run the script explicitly.
if ($?CLASSES) then
# Convert environment variable to shell variable
set Classes=(`echo $CLASSES | tr ":" " "`)
if ($#Classes > 0) then
if(x$Classes[1] != x && -r /local/etc/class.login) then
# Invoke class-specific login files.
source /local/etc/class.login
endif
endif
# Release shell variable
unset Classes
endif
...end of out/etc.login
- which in turn reads
/local/etc/Class_cshrc
contents of out/Class_login...
#! /bin/tcsh -fb
# Class-specific login actions for cs.tufts.edu
#
# This file should be sourced after the shell variable CLASSES has been
# set up as a word list of classes: e.g. `setenv CLASSES 11:15:280; source...'
# As a side effect, this script kills the variables Classes and TheClass
if ($?CLASSES) then
# Convert environment variable to shell variable
set Classes=(`echo $CLASSES | tr ":" " "`)
# If there are any appropriate classes,
if ($?Classes) then
if ($#Classes > 0) then
if (x$Classes[1] != x) then
# Invoke class-specific login files
foreach TheClass ($Classes)
if (-r /g/$TheClass/Class_login) source /g/$TheClass/Class_login
end
unset TheClass
endif
endif
endif
endif
...end of out/Class_login
- followed by
~/.login:
contents of out/user.login...
# C-shell and T-shell initialization file for Tufts University
#######################################################################
# This file controls options and behavior of the command interpreter,
# by executing a standard script that is the same for all users.
#
# To customize your shell, # replace this file by the standard script
# /local/etc/standard.login and edit it to suit your own tastes.
# While in your home,
# a) cp /local/etc/standard.login .login
# b) emacs .login (to make changes).
# But if you mess up your environment, so that nothing works,
# you must restore the old state of your account by:
# c) cp /local/etc/template.login .login
#######################################################################
# Execute the standard startup file.
source /local/etc/standard.login
...end of out/user.login
- which reads
/local/etc/standard.login:
contents of out/standard.login...
# @(#)Login 1.1 86/01/06 SMI;
##################################################################
#
# .login file
#
# Read in after the .cshrc file when you log in.
# Not read in for subsequent shells. For setting up
# terminal and global environment characteristics.
#
##################################################################
# If executing the normal C-shell, still read system-wide init file
if ($?SHELL != 0) then
if ($SHELL == /bin/csh && -r /etc/csh.login) source /etc/csh.login
endif
# terminal characteristics for remote terminals:
# default is vt100 for ALL remote terminals
if ($?TERM == 0) then
setenv TERM vt100
endif
# general terminal characteristics
# Un-comment the following line to use control-H (backspace) for DELETE
# stty erase '^h'
# environment variables
# Tell the "more" command to erase the screen before displaying each page
setenv MORE '-c'
# figure out operating system from uname command
set opsys = `/usr/bin/uname -s`
# Sun Microsystems Special initialization
if ($opsys == 'SunOs') then
# execute these commands on all SunOs systems
set noglob
set term = `/usr/ucb/tset - -IQ -m unknown:?vt100 -m network:?vt100 -m dialup:?vt100 $TERM`
unset noglob
# start up openwindows if on a workstation
if ("`tty`" == "/dev/console") then
# First give the user a chance to bail out
echo -n "Openwin? (^C to interrupt)"
# A control-C during this sleep will simply skip the rest of this file
# and leave the user in an ordinary shell
sleep 5 ; echo ' '
/usr/openwin/bin/openwin
# After exiting openwin, log out by default
echo -n "Logging out... (^C to stay logged in)"
# A control-C during this sleep will skip the logout and leave the user
# in an ordinary shell
sleep 5 ; echo ' '
logout
endif
# Silicon Graphics Special initialization
else if ($opsys == 'IRIX') then
# execute these commands on ALL IRIX systems:
if (`/usr/bin/uname -r | /usr/bin/awk -F. '{print $1}'` >=6) then
# execute these commands on IRIX 6.x systems and above:
else
# execute these commands on IRIX 5.x systems and below:
endif
# Dec Alpha Special initialization
else if ($opsys == 'OSF1') then
# execute these commands on ALL OSF/1 systems:
# Dec MIPS Special initialization
else if ($opsys == 'ULTRIX') then
# execute these commands on ALL ULTRIX systems:
endif
unset opsys
...end of out/standard.login