[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FW1] Nt Log batch problem




Try prefexing it with call.

eg call %FWDIR%\bin\fwstop

On NT the fwstop is a simple batch file, and control is transferred to it -
it's like a goto rather than gosub.  Call should fix it.






Francisco Cabral <[email protected]>@lists.us.checkpoint.com
on 01/03/2001 12:56:36

Sent by:  [email protected]


To:   "'[email protected]'"
      <[email protected]>
cc:
Subject:  [FW1] Nt Log batch problem



Hi all,

Here a sample script to rotate the FW-1 log files on the management station
(NT 4.0):

set FWDIR=C:\WINNT\FW1\4.1

for /F "tokens=1-4 delims=/ " %%a in ('date /t') do set DayOfWeek=%%a&set
Month=%%b&set Day=%%c&set Year=%%d&set Date=%%b-%%c-%%d %%a
cd \
cd %FWDIR%\log

ren fw.log "fw.%date%.log"
move "fw.%date%.log" "%fwdir%\log\backup\fw.%date%.log"
%FWDIR%\bin\fwstop
sleep 10
%FWDIR%\bin\fwstart

PROBLEM: after the fwstop command, the script just exits without completing
itself. Any people out there had encountered this problem before?

Regards,

Francisco Cabral


================================================================================

     To unsubscribe from this mailing list, please see the instructions at
               http://www.checkpoint.com/services/mailing.html
================================================================================





================================================================================
     To unsubscribe from this mailing list, please see the instructions at
               http://www.checkpoint.com/services/mailing.html
================================================================================