Subject | RE: [firebird-support] Re: gsec and stdout on Windows 7 |
---|---|
Author | Carrell Alex |
Post date | 2010-02-02T15:24:10Z |
I forgot to mention, within the scriptbom.backup.long.sh, gbak, gsec are being run verbosely and chucking out loads of information. I capture a short log in the script and ">>/home/firebird/logs/bom.backup.`date +\%Y\%m\%d\%H\%M` log 2>&1" is a long log to capture all messages.
On a *nix I pipe gstat,gbak, gsec out to a file example /home/firebird/scripts/bom.backup.long.sh >>/home/firebird/logs/bom.backup.`date +\%Y\%m\%d\%H\%M` log 2>&1
nb. this is from a crontab and the date values are escaped.
The resultant log file I monitor occassionally with "tail -f ", which just updates the console with each line appended to the file
No idea of equivalent of windows, but with powershell the must be a way.
Just not an expert with powershell.
alex
This message and any attachments (the message) are intended solely for the addressees and are
confidential. If you receive this message in error, please delete it and immediately notify
the sender. Any use not in accordance with its purpose, any dissemination, copying or disclosure,
either whole or partial is prohibited without prior formal approval. The internet cannot
guarantee the integrity of the message. The companies of Bobst Group do not accept any liability
for data corruption, delay, interception or any modification in relation with this message.
>>Hi
On a *nix I pipe gstat,gbak, gsec out to a file example /home/firebird/scripts/bom.backup.long.sh >>/home/firebird/logs/bom.backup.`date +\%Y\%m\%d\%H\%M` log 2>&1
nb. this is from a crontab and the date values are escaped.
The resultant log file I monitor occassionally with "tail -f ", which just updates the console with each line appended to the file
No idea of equivalent of windows, but with powershell the must be a way.
Just not an expert with powershell.
alex
This message and any attachments (the message) are intended solely for the addressees and are
confidential. If you receive this message in error, please delete it and immediately notify
the sender. Any use not in accordance with its purpose, any dissemination, copying or disclosure,
either whole or partial is prohibited without prior formal approval. The internet cannot
guarantee the integrity of the message. The companies of Bobst Group do not accept any liability
for data corruption, delay, interception or any modification in relation with this message.