|

楼主 |
发表于 2006-11-15 10:26:50
|
显示全部楼层
我设了一个测试程序的shell(abc.sh),我希望在登陆自动运行abc.sh时,无任何动作30秒退出。光设置export TMOUT=30好像也不行啊。如果不要./abc.sh 和logout这两行,
export TMOUT=30可以生效。
我的.bash_profile是这样的:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH HOME/bin
export PATH
unset USERNAME
./abc.sh
logout
export TMOUT=30 |
|