#filename

Guy Harris guy at sun.uucp
Tue Apr 30 14:41:16 AEST 1985


> > >	I recently found out that any filename begining with
> > >'#' will be deleted upon logout.  ... I haven't been able to
> > > find this mentioned in any docuemtation....
> > >know where to find it?
> > 
> > It's on page 3 of "Introduction to the C Shell"...
> 
>    It doesn't work with the version of the C-shell distributed with the
> 	IBM PC/AT version of Xenix, though.

That's because it has nothing to do with the C shell.  4.2BSD comes with an
entry in "crontab" which cleans out files beginning with "#" every night
(not upon logout; the C shell tutorial we have here says "The system removes
such failes after a couple of days, or sooner if file space becomes very
tight.").  I presume Xenix doesn't have this crontab entry.  If you want
this to work, just stick

	40 4 * * * find / '(' -name '#*' -o -name '*.CKP' ')' -a -atime +3
		-a -exec rm -f {} ';'

into "crontab" (the ".CKP" stuff is for the benefit of EMACS users).

	Guy Harris



More information about the Comp.unix mailing list