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

Re: [cobalt-users] RE: Clearing Web Log



John Burgess wrote:

> I'll respond too.  A little trick you can use if you don't care to keep a
> copy of the log file
> and you just want to zero it out you can do this:  cat > filename<enter>
> <ctrl><z>
> 
> or some may know this as: cat /dev/null > filename
> 
> This won't mess up the log writing routines for some programs that want to
> keep writing to the same
> as they were before the rm and no sighup is required.
> 
> Is this "proper"?  It was back when I was teaching Sys Admin for AT&T back
> in '89 when they still owned UNIX.

I remember this trick (the second version) now.  Seems "proper" to me
<smile>, since doing cat on /dev/null returns an immediate end-of-file.

Jeff
-- 
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA  92517
voice: (909) 787-8589  *  fax: (909) 782-0205