Chinaunix首页 | 论坛 | 博客
  • 博客访问: 334400
  • 博文数量: 214
  • 博客积分: 4258
  • 博客等级: 上校
  • 技术积分: 2021
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-02 09:16
个人简介

http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net

文章分类

全部博文(214)

文章存档

2018年(16)

2015年(1)

2014年(2)

2012年(22)

2011年(173)

分类: Python/Ruby

2011-10-13 09:15:38

# The profile that all logins get before using their own .profile
trap " " 2 3
export LOGNAME PATH  # Initially set by /bin/login
if [ "$TERM" = " " ]
then
 if /bin/i386
 then     # Set the terminal type
  TERM=AT386
 else
  TERM=sun
 fi
 export TERM
fi
# Login and -su shells get /etc/profile services.
# -rsh is given its environment in the .profile.
case "$0" in
-sh | -ksh | -jsh )
 if [ ! -f .hushlogin ]
 then
  /usr/sbin/quota
 # Allow the user to break the Message-Of-The-Day only.
  trap "trap ' ' 2" 2
  /bin/cat -s /etc/motd    
  # Display the message of the day
  trap " " 2
  /bin/mail -E
  case $? in
  0) # Check for new mail
   echo "You have new mail. "
    ;;
  2) echo "You have mail. "
    ;;
  esac
 fi
esac
umask 022
trap 2 3
阅读(272) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~