10-30-2013 07:44 AM
Hi experts.
I need to terminate the backup if it does not finished in 4 hours so that our script can start the database.
When we cancel manually via the console the coldbackup script continues and starts the database, but I need to create another script to verify automatically the timing.
Can I just kill the bpbkar process?
PARAM9=! ps -ef| grep -v grep | grep bpbkar|wc -l
if [[ $PARAM9 -gt 0 ]] ; then
kill -9 $(ps -ef | grep -v grep | grep bpbkar | awk '{print $2}')
fi
Solved! Go to Solution.
10-30-2013 08:51 AM
yes, you can do that and in this case your backup will fail with EC 50.
10-30-2013 08:51 AM
yes, you can do that and in this case your backup will fail with EC 50.
10-30-2013 09:32 AM
Thank you!
10-30-2013 11:12 AM
do a kill -1 PID or kill -2 PID
It's a more gracefull way to stop bpbkar than kill -9