
If you were logged in you would be able to see more operations.
|
|
|
Environment:
|
OS independent
|
|
QA Status: |
Done successfully
|
gbak doesn't return error code when used with service manager and output redirected into the non-accessible file.
E.g. bat file (there is no drive Z on the target machine):
--
gbak.exe -t -se 192.168.0.101:service_mgr C:\db.fdb c:\db.fbk -y z:\log.txt -user SYSDBA -password masterkey
@echo %errorlevel%
--
returns exit code 0 instead of 1.
If "-y z:\log.txt" part is removed - then correct errorcode 1 is returned.
|
Description
|
gbak doesn't return error code when used with service manager and output redirected into the non-accessible file.
E.g. bat file (there is no drive Z on the target machine):
--
gbak.exe -t -se 192.168.0.101:service_mgr C:\db.fdb c:\db.fbk -y z:\log.txt -user SYSDBA -password masterkey
@echo %errorlevel%
--
returns exit code 0 instead of 1.
If "-y z:\log.txt" part is removed - then correct errorcode 1 is returned. |
Show » |
|
gbak -c -user "$IBUSER" -pass $2 -v -y "$PRTPATH/$1.rpr" "$ARCPATH/$1.gbk" "$TSTPATH/$1.gdb" -SE localhost:service_mgr
if no access to file $ARCPATH/$1.gbk I can see error message:
gbak: ERROR:cannot open backup file /ibbackup/****.gbk
gbak: ERROR: Exiting before completion due to errors
gbak:Exiting before completion due to errors
if no access to file $PRTPATH/$1.rpr there is no error message!