Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ profile(4) — A/UX 0.7

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

env(1)

login(1)

mail(1)

sh(1)

stty(1)

su(1)

environ(5)

term(5)



     profile(4)                                             profile(4)



     NAME
          profile - setting up an environment at login time

     DESCRIPTION
          If your login directory contains a file named .profile, that
          file will be executed (via the shell's exec .profile) before
          your session begins; .profiles are handy for setting
          exported environment variables and terminal modes.  If the
          file /etc/profile exists, it will be executed for every user
          before the .profile.  The following example is typical
          (except for the comments):

               trap "" 1 2 3
               TZ=PST8PDT
               PATH=/usr/lib/acct:/bin:/usr/bin
               TERM=mac2
               MAILCHECK=60
               MAILPATH=/usr/mail/$LOGNAME
               export LOGNAME TZ TERM PATH
               readonly LOGNAME
               umask 022
               case "$0" in
               -sh | -rsh)
                      trap : 1 2 3
                      cat /etc/motd
                      trap "" 1 2 3
                      if mail -e
                      then
                           echo "you have mail"
                      fi
                      ;;
                      if [ $LOGNAME != root ]
                      then
                              news -n
                      fi
                      ;;
               -su)
                      :
                      ;;
               esac
               trap 1 2 3
               stty susp '^Z'
               stty erase DEL intr ^C
               stty ixon

     FILES
          /etc/profile
          $HOME/.profil

     SEE ALSO
          env(1), login(1), mail(1), sh(1), stty(1), su(1),
          environ(5), term(5).



     Page 1                                        (last mod. 1/14/87)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026