TIP: Click on subject to list as thread! ANSI
echo: linuxhelp
to: David.Gonzalez
from: Mike `/m`
date: 2003-05-09 13:07:26
subject: Re: Cleaning /tmp at start up Mandrake 9.1

From: Mike '/m' 

On 8 May 2003 23:15:02 GMT, David.Gonzalez{at}harborwebs.com wrote:

>* Originally in LINUX
>* Crossposted in LINUXHELP
>* Crossposted in LINUX-USER
>* Crossposted in LINUX.GER
>Hello everybody.
>
>I selected the opcion to "Clean /tmp at boot" on Mcc but it's
not cleaned at
>all, in fact i think i found an annoying bug here or i guess ... the thing is
>simple i check the "Clean /tmp at boot" option, Save and Exit
then go back
>and it's unchecked.
>
>Can anyone tell me if it'd be safe to simply delete everything on /tmp with a
>Home Brewed script like this and put it on /etc/init.d?
>
>=======
>/bin/sh
>cd /tmp
>rm -rf *
>========



I try to put the full path in the rm command, instead of doing a cd then a
rm of the current directory.   If, for some reason, the cd fails, then
you'll delete everything in the current directory.

 /m

--- BBBS/NT v4.01 Flag-4
* Origin: Barktopia BBS Site http://HarborWebs.com:8081 (1:379/1.45)
SEEN-BY: 633/267 270
@PATH: 379/1 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.