Subject | RE: [firebird-support] Nightly Backup Batch File problem |
---|---|
Author | Johan van Zyl |
Post date | 2005-04-03T19:31:36Z |
Thx!
And now this:
This code:
rem ========= Step 2: stop InterbaseServer =========
echo Try stop FBServer... >> %BATLOGFILE%
rem NET STOP InterbaseServer 1> nul 2>> %BATLOGFILE%
NET STOP fbserver 1> nul 2>> %BATLOGFILE%
IF errorlevel 1 GOTO NOT_STOPPED
echo stop fbserver ok >> %BATLOGFILE%
gives me this:
Sun 2005/04/03
21:10
Try Shutdown Database...
Shutdown firebird ok
Shutdown employee2 ok
Try stop FBServer...
System error 1060 has occurred.
The specified service does not exist as an installed service.
Stop FBServer failed!
What will be the correct syntax?
Greetings
JVZ
-----Original Message-----
From: Scott Morgan [mailto:blumf@...]
Sent: 03 April 2005 20:54
To: firebird-support@yahoogroups.com
Subject: Re: [firebird-support] Nightly Backup Batch File problem
Johan van Zyl wrote:
'>'s are really '>' ([G]reater [T]han) and are used in HTML and XML
amongst other systems for escaping what is usually a control char (i.e.
part of a HTML tag like <P> for example).
Thus your example becomes:
Date /T >> %BATLOGFILE%
Time /T >> %BATLOGFILE%
gfix -shut -attach 30 C:\realcorp\firebird\data\employee.fdb -user
SYSDBA -pass masterkey 2> errout.tmp
Except I don't think DOS/Nt's CMD.EXE supports '2>'.
Scott
----------------------------------------------------------------------------
--
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/firebird-support/
b.. To unsubscribe from this group, send an email to:
firebird-support-unsubscribe@yahoogroups.com
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
----------
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.1 - Release Date: 2005/04/01
[Non-text portions of this message have been removed]
And now this:
This code:
rem ========= Step 2: stop InterbaseServer =========
echo Try stop FBServer... >> %BATLOGFILE%
rem NET STOP InterbaseServer 1> nul 2>> %BATLOGFILE%
NET STOP fbserver 1> nul 2>> %BATLOGFILE%
IF errorlevel 1 GOTO NOT_STOPPED
echo stop fbserver ok >> %BATLOGFILE%
gives me this:
Sun 2005/04/03
21:10
Try Shutdown Database...
Shutdown firebird ok
Shutdown employee2 ok
Try stop FBServer...
System error 1060 has occurred.
The specified service does not exist as an installed service.
Stop FBServer failed!
What will be the correct syntax?
Greetings
JVZ
-----Original Message-----
From: Scott Morgan [mailto:blumf@...]
Sent: 03 April 2005 20:54
To: firebird-support@yahoogroups.com
Subject: Re: [firebird-support] Nightly Backup Batch File problem
Johan van Zyl wrote:
>http://firebird.sourceforge.net/index.php?op=usefulLooks like you picked up the commands from a broken web page. The
>Each and every instance of gt results in errors!
>What is the purpose of gt and can it be ignored?
>samples are:
>Date /T >> %BATLOGFILE%
>Time /T >> %BATLOGFILE%
>
>gfix -shut -attach 30 C:\realcorp\firebird\data\employee.fdb -user
>SYSDBA -pass masterkey 2> errout.tmp
>
>
'>'s are really '>' ([G]reater [T]han) and are used in HTML and XML
amongst other systems for escaping what is usually a control char (i.e.
part of a HTML tag like <P> for example).
Thus your example becomes:
Date /T >> %BATLOGFILE%
Time /T >> %BATLOGFILE%
gfix -shut -attach 30 C:\realcorp\firebird\data\employee.fdb -user
SYSDBA -pass masterkey 2> errout.tmp
Except I don't think DOS/Nt's CMD.EXE supports '2>'.
Scott
----------------------------------------------------------------------------
--
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/firebird-support/
b.. To unsubscribe from this group, send an email to:
firebird-support-unsubscribe@yahoogroups.com
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
----------
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.1 - Release Date: 2005/04/01
[Non-text portions of this message have been removed]