shell脚步

1270阅读 0评论2014-06-10 周士昆
分类:系统运维

more oraservicechk.sh
#!/bin/bash
check253=`nc -vv -z 10.0.0.253 1522 | awk '{print $7}'`
if [ "$check253" = "succeeded!" ] ;then
             echo "Local oracle service in Normal!!!"
      else
             echo "Local oracle Service Not Startup!!"
more rsyncmysql_to246.sh
#!/bin/bash
/usr/bin/rsync -zrptgoD --progress --password-file=/etc/pass.pass  /home/mysqlDBBak/   optback@10.0.0.246::mysqlDBBack
sleep 1s
echo  "mysql backup to 10.0.0.246 complete"

上一篇:没有了
下一篇:oracle学习笔记