suspend_logwriter.sh script (MAXDB)

#!/bin/sh
 export INSTHOME=/home/sdb
 date >> $INSTHOME/suspend_logwriter.log
 echo "----START SUSPEND----" >> $INSTHOME/suspend_logwriter.log << EOF
 EOF
 #connect to the database
 dbmcli -d MaxDB -u DBADMIN,DBADMIN util_connect DBADMIN,DBADMIN >> $INSTHOME/suspend_logwriter.log
 echo "util_connect done" >> $INSTHOME/suspend_logwriter.log << EOF_1
 EOF_1
 #set suspend logwriter for database
 dbmcli -d MaxDB -u DBADMIN,DBADMIN util_execute suspend logwriter >> $INSTHOME/suspend_logwriter.log
 echo "suspend logwriter done" >> $INSTHOME/suspend_logwriter.log << EOF_2
 EOF_2
 echo "----END----" >> $INSTHOME/suspend_logwriter.log << EOF_3
 EOF_3

Loading...