I want to know when the bpbkar process has ended
I want to know how to verify if the backup has ended in order for me to verify in the script, if the log has different errors, and also to start the database.
Also the script opens the database after the bpbkar has ended and what is happening is that bpbkar process disappear for a moment and then appears back to continue to backup the database but the database has already been opened after not seeing the bpbkar process for a while.
while ps -ef|grep -w "[b]pbkar"
echo "Backup in progress...Waiting!" >> $LOGFILE