Subject: | |
From: | |
Reply To: | |
Date: | Fri, 11 Jun 1999 23:31:08 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Glen,
How about setting up a job that runs weekly. It would do a listf each week.
After the fourth week, it would use the listf from a month ago and use the
file names (included in the LISTF output) in a command file to purge the one
month old log files.
<< Please note the job below was typed freehand at 11:30 on a Friday night.
>>
:JOB << user.acct >>
:COMMENT ** Pre-build the files for all 4 weeks of LISTFs
:SETVAR HPAUTOCONT TRUE
:BUILD LNAMES3
:BUILD LNAMES2
:BUILD LNAMES1
:BUILD LNAMES0
:SETVAR HPAUTOCONT FALSE
:
:COMMENT ** Get the current LOG files -- Add others too if you like.
:PURGE LNAMES
:BUILD LNAMES;REC=-80,1,F,ASCII
:FILE LNAMES;ACC=APPEND
:LISTF LOG####.PUB.SYS,6 >*LNAMES
:LISTF NMLG####.PUB.SYS,6 >*LNAMES
:
:COMMENT ** Prepare the PURGE command file
:COMMENT ** I would probably include a check to see if LNAMES3 was empty
:COMMENT ** and bypass this step
:PURGE LNAMESX
:EDITOR
T LNAMES3
C 1 to "PURGE " in all
K LNAMESX,UNN
E
:XEQ LNAMESX
:
:COMMENT ** Use a series of RENAME cmds to cycle the generations.
:PURGE LNAMES3
:RENAME LNAMES2,LNAMES3
:RENAME LNAMES1,LNAMES2
:RENAME LNAMES0,LNAMES1
:RENAME LNAMES ,LNAMES0
:
:EOJ
I hope this gives you some ideas.
Mark Ranft
[log in to unmask]
www.Pro3K.com
Glen Rose <[log in to unmask]> wrote in message
news:CbZ73.331$xJ.10233@newse3.tampabay.rr.com...
> Hi all,
> I have an HP3000 957 mpe 5.0 I think PP3??
>
> What's the best way to clear out old log files..Also if anyone could lend
me
> some system clean up tips I could use them..
>
> Thanks to all that Reply..
>
>
|
|
|