[Stackoverflow] [Progress OpenEdge ABL] Verify dbman is finished before continuing

Status
Not open for further replies.
J

jdpjamesp

Guest
For reasons I'd rather not go into, I have to use dbman on Windows to stop and start a database in a script. It works a treat, except it returns back to the OS that it finished before the database is actually shutdown. According to this KB article Progress KB - Database did not shutdown when using dbman -stop scripts there is stuff about this in the documentation, but I can't find it there! Here's my script - would appreciate some help in working out how to wrap a check for the db being down!

call del /Q C:\temp\BackupLog.txt
call c:\Progress\OpenEdge117_64\bin\dbman.bat -database sports -user dbuser -password l3tmein! -stop >> C:\temp\BackupLog.txt
call c:\Progress\OpenEdge117_64\bin\probkup C:\temp\sports C:\temp\SmartDBDelta%date%.bkp incremental -Bp 10 >> C:\temp\BackupLog.txt
call c:\Progress\OpenEdge117_64\bin\dbman.bat -database SmartDB -user dbuser -password l3tmein! -start >> C:\temp\BackupLog.txt

Continue reading...
 
Status
Not open for further replies.
Top