exit
Last updated
Last updated
# 打开ctrl+d退出终端
set -o ignoreeof
# 关闭ctrl+d退出终端
set +o ignoreeofcd $(dirname $0) || exit 1if [ "$#" -ne "2" ]; then
echo "usage: $0 <area> <hours>"
exit 2
fitrap "rm -f tmpfile; echo Bye." EXIT./mycommand.sh
EXCODE=$?
if [ "$EXCODE" == "0" ]; then
echo "O.K"
fi