logo       

RE: Rolling the log in EzProxy: msg#00017

education.ezproxy

Subject: RE: Rolling the log in EzProxy

Hi,
I use the following successfully:
I have 4 files:

-------

(this is called dmy.cmd)

@ECHO OFF
for /F "tokens=2-4 delims=/ " %%j in ('date /t') do (
set Mo=%%j
set Day=%%k
set Yr=%%l
)

for /F "tokens=1-2 delims=: " %%m in ('time /t') do (
set Hr=%%m
set Min=%%n
)

-------

(rotatelog.cmd)

cd \ezproxy
call c:\dmy.cmd
start /wait net stop ezproxy
cscript c:\sleep10.vbs
ren ezproxy.log EZ%Yr%%Mo%%Day%%Hr%%Min%.log
move EZ%Yr%%Mo%%Day%%Hr%%Min%.log LOGOLD
start /wait net start ezproxy
cd \ezproxy\LOGOLD
xcacls . /T /E /G wg-library:R

-------

(rotatespu.cmd)

cd \ezproxy
call c:\dmy.cmd
start /wait net stop ezproxy
cscript c:\sleep10.vbs
ren spu.log SP%Yr%%Mo%%Day%%Hr%%Min%.log
move SP%Yr%%Mo%%Day%%Hr%%Min%.log SPUOLD
start /wait net start ezproxy
cd \ezproxy\SPUOLD
xcacls . /T /E /G wg-library:R

-------

(sleep10.vbs)

wScript.Echo "Sleep 10000"
wScript.sleep 10000

-------

I put them in the c drive on the ezproxy machine.
I created two folders in c:ezproxy (where the ezproxy files are) called
LOGOLD and SPUOLD.

Then I set up two tasks in windows to run rotatelog.cmd and
rotatespu.cmd once per week and I get the logfile (and the shorter spu
log file) placed in the LOGOLD / SPUOLD folders.
Works great.

-Pete






-----Original Message-----
From: Doris Van Kampen [mailto:doris.vankampen@xxxxxxxxxxxx]
Sent: Friday, February 03, 2006 10:16 AM
To: EZProxy discussion list
Subject: [ezproxy] Rolling the log in EzProxy

Hello oh fount of wisdom

Does anyone have a quick cheat sheet/batch file code for rolling the
ezproxy log?


THANKS


Doris J. Van Kampen MA(LIS), EdD
Systems Librarian and Assistant Professor Saint Leo University



---
You are currently subscribed to ezproxy as: BarvoePD@xxxxxxxxxxxxxx To
unsubscribe send a blank email to leave-ezproxy-58098R@xxxxxxxxxxx

---
You are currently subscribed to ezproxy as: gee-ezproxy@xxxxxxxxx
To unsubscribe send a blank email to leave-ezproxy-58098R@xxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise