Subject Re: gfix and gbak return codes in bash
Author olivier_lucaes
Hi heLen,
Sorry for previous uncomplete reply !

Then i was writing that i have started this task using gfix to bring
the database offline. If gbak can pipe out its messages using the -y
switch, gfix does not have the same functionality.
Any work around ?
Or maybe it does not make any more sense to bring a database offline
with FB 1.5 (backup can be done while the base is online, no ?) ?
thanks again for your precious support.

all the best

Olivier



--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
> At 08:42 PM 15/04/2004 +0000, you wrote:
> >Hello Artur,
> >thanks for your answer.
> >do you mean i should do something like
> >
> >../gbak -parameters..... > gfix_result.log
> >
> >and grep gfix_result.log ?
> >
> >I think i tried this during my tests but did not get any result
> >inside the file (was always empty).
> >I will try again and let you know.
>
> You need to pipe the output using the -v and -y switches - the -y
switch
> preceding a full path to the log file. And the log file must not
exist
> already; so you need to make your script either delete any file
of your
> (hard-coded) name, or generate a new name.
>
> /heLen