Skip to content


Modyfikowanie środowiska użytkowników w AIX z KSH

/etc/profile – Polecenia tego pliku ustawiają zmienne wspólne dla wszystkich użytkowników i aplikacji.

# System wide profile.  All variables set here may be overridden by
# a user’s personal .profile file in their $HOME directory.  However,
# all commands here will be executed at login regardless.

trap “” 1 2 3
readonly LOGNAME

# Automatic logout, include in export line if uncommented
# TMOUT=120

# The MAILMSG will be printed by the shell every MAILCHECK seconds
# (default 600) if there is mail in the MAIL system mailbox.
MAIL=/usr/spool/mail/$LOGNAME
MAILMSG=”[YOU HAVE NEW MAIL]”

# If termdef command returns terminal type (i.e. a non NULL value),
# set TERM to the returned value, else set TERM to default lft.
TERM_DEFAULT=lft
TERM=`termdef`
TERM=${TERM:-$TERM_DEFAULT}

# If LC_MESSAGES is set to “C@lft” and TERM is not set to “lft”,
# unset LC_MESSAGES.
if [ “$LC_MESSAGES” = “C@lft” -a “$TERM” != “lft” ]
then
unset LC_MESSAGES
fi
PS1=$(uname -n):’$PWD>’
EDITOR=vi
export LOGNAME MAIL MAILMSG TERM PS1 EDITOR
trap 1 2 3

==============================================================

Posted in Real life AIX, scripts.

Tagged with , , , , , , , , , .


3 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. HMC says

    Wielkie dzieki art 😀

  2. hmc says

    Wielkie dzieki (za) art 😀

  3. zen says

    dzięki za tekst

    P.S. Straszny ortograf!



Some HTML is OK

or, reply to this post via trackback.



Copyright © 2016 Waldemar Mark Duszyk. All Rights Reserved. Created by Blog Copyright.