Subject: | |
From: | |
Reply To: | Stigers, Gregory - ANDOVER |
Date: | Wed, 27 Nov 1996 16:22:01 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
I asked a good friend who loves UNIX if the POSIX shell could help me
delete any spool files over one week old. This appears to work under the
'pshell'. I do not know of a way to do this through CI, and had asked
the list members if anyone else knew how I could do this (thanks anyway
for those of you who suggested MPEX, but I want to use only the OS & its
utilities). Here's his answer; this seems to do most of what I want. It
is of course not spool file specific (unlike SPOOLF / SPIFF /
DELETESPOOLFILE), so the job would have to chdir /HPSPOOL/OUT first
(after entering the shell itself, of course).
>----------
>find . -mtime +7 -print | xargs -t -i rm -f {}
>will remove all files +7 days old (based on modify date)
>
>
>
|
|
|