shellllllllllllll

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值