resume_logwriter.sh script (MAXDB)

#!/bin/sh
 export INSTHOME=/home/sdb
 date >> $INSTHOME/resume_logwriter.log
 echo "----START RESUME----" >> $INSTHOME/resume_logwriter.log << EOF
 EOF
 #set resume logwriter for database
 dbmcli -d MaxDB -u DBADMIN,DBADMIN util_execute resume logwriter >> $INSTHOME/resume_logwriter.log
 echo "resume done" >> $INSTHOME/resume_logwriter.log << EOF_1
 EOF_1
 dbmcli -d MaxDB -u DBADMIN,DBADMIN util_release >> $INSTHOME/resume_logwriter.log
 echo "release done" >> $INSTHOME/resume_logwriter.log << EOF_2
 EOF_2
 echo "----END----" >> $INSTHOME/resume_logwriter.log << EOF_3
 EOF_3

Loading...