HP3000-L Archives

November 1996, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Stigers, Gregory - ANDOVER" <[log in to unmask]>
Reply To:
Stigers, Gregory - ANDOVER
Date:
Wed, 27 Nov 1996 16:22:01 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (17 lines)
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)
>
>
>

ATOM RSS1 RSS2