proutil db-name -C busy
|
Return code
|
Description
|
0
|
Database is not in use
|
6
|
Database is in use
|
64
|
Database is in process of starting up
|
proutil mydb -C busy
if [ $? != 0 ] then echo echo "Do you want to use ‘proshut' to force users off\ the system?" read ans if [ "$ans" = y ] then proshut -by mydb else echo "Backup will not be performed." exit fi fi echo "Beginning backup." # Backup procedure |