Re: [K12OSN] Emptying the K12LTSP version of the Squid cache
Eric Harrison (eharrison@mail.mesd.k12.or.us)
28 Mar 2002 16:08:22 -0800
--=-x1/Z+dFZRdBtpRCU0Pyx
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
On Thu, 2002-03-28 at 15:47, jam@McQuil.Com wrote:
> I would change the rm command to this:
>=20
>=20
> rm -rvf /var/spool/squid/*
>=20
> That way, if the cd fails, you won't accidentally
> delete something unexpected.
Okay, how about this....
su -s /bin/sh squid =20
rm -rfv /var/spool/squid/*
That way if you did screw up the "rm" command, it would only wipe out
stuff owned by squid.
> But, be VERY careful. accidentally putting a
> space after the first slash could ruin your day :)
This should be manditory reading material:=20
http://www2.hunter.com/~skh/humor/admin-horror.html
-Eric
--=-x1/Z+dFZRdBtpRCU0Pyx
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQA8o7B1H9eQw/Gi3tURAsmlAKDNg+IEs8JcOTU809lLbSI+Z4ET4QCdEywz
/dorQEGnQBNB2yyg/ttcR0Q=
=RQj3
-----END PGP SIGNATURE-----
--=-x1/Z+dFZRdBtpRCU0Pyx--
_______________________________________________
K12OSN mailing list
K12OSN@redhat.com
https://listman.redhat.com/mailman/listinfo/k12osn
For more info see