scripts

Georg Wilckens durandal at nfinity.de
Sun Jun 11 23:24:24 PDT 2000


On Mon, Jun 12, 2000 at 11:19:43AM +1000, Andre Pang wrote:
> On Mon, Jun 12, 2000 at 12:55:13AM +0200, Georg Wilckens wrote:
> 
> > > I do it simply like this. At some point a cleandirs script is run
> > > containing nothing more than:
> > > #!/bin/sh
> > > /bin/rm -r /tmp; mkdir /tmp; chmod 1777 /tmp
> > 
> > Yeah, just checked. I thought "-r" could follow a symlink and flatten
> > another directory due to that. But -r doesn't follow symlinks and
> > directories cannot be hardlinked. So.. no problem. Btw... this is even
> > simpler: /bin/rm -rf /tmp/*
> 
>     you might want to do ``/bin/rm -rf /tmp/* /tmp/.*''.  (X and certain
> other programs make dotfiles in /tmp.)

Uhh... right. Forgot to catch that.

-- 
Georg Wilckens <durandal at nfinity.de>

Democracy is the recurrent suspicion that more than half of the people
are right more than half of the time.  -- E. B. White
--
Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
News Reader access: news.pcrdallas.com
Unsubscribe: email lfs-discuss-request at linuxfromscratch.org and put
"unsubscribe" (without the quotation marks) in the body of the message
(no subject is required)



More information about the lfs-dev mailing list