`

shellllllllllllll

    博客分类:
  • Unix
阅读更多
patcher_home=`dirname $0`
cd ${patcher_home}


row=`expr ${row} + 1`


if [ -f $HOME/$infclientfile -a -f ${upgrade_path}/newpatch/$oraclientfile ]; then
    rm ${upgrade_path}/newpatch/$oraclientfile
    rm ${upgrade_path}/newpatch/$oraserverfile
    rm ${upgrade_path}/newpatch/$oramappingfile
elif [ -f $HOME/$oraclientfile -a -f ${upgrade_path}/newpatch/$infclientfile ]; then
    rm  ${upgrade_path}/newpatch/$infclientfile
    rm  ${upgrade_path}/newpatch/$infserverfile
    rm  ${upgrade_path}/newpatch/$infmappingfile
fi


typeset joey_local_count=`cat ${joey_config_file_name}|awk -F= -v k="${joey_local_key}" '{ if ( $1 == k ) print $2 }'|wc -l`


if [ "$joey_dmType" = "cold_standby_slave" -o $joey_dmType = "hot_standby_slave" ];then
       echo "INFO" "This is standby machine."
       return 1
    fi


export WORKDIR=`pwd`


type

exec


http://blog.chinaunix.net/u/24474/showart_241337.html

env显示当前用户的环境变量情况,包括SHELL,PATH等
export variable 将局部变量导出为全局变量,使变量在当前SHELL生效,可使用set命令查看所有已定义的变量,如果要取消某个变量,执行unset variable

http://fanqiang.chinaunix.net/a2/b4/index.html

http://bbs.chinaunix.net/viewthread.php?tid=742295

http://bbs.chinaunix.net/viewthread.php?tid=322149

http://bbs.chinaunix.net/viewthread.php?tid=407426


exec

http://blog.chinaunix.net/u2/72383/showart_1077024.html

typeset
http://blog.chinaunix.net/u/21006/showart_1928536.html
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics