From mike@boobaz.net Thu Jul 27 23:45:47 2000 Received: from mxu2.u.washington.edu (mxu2.u.washington.edu [140.142.32.9]) by lists.u.washington.edu (8.9.3+UW00.05/8.9.3+UW99.09) with ESMTP id XAA26996 for ; Thu, 27 Jul 2000 23:45:46 -0700 Received: from boobaz.net (c1056043-a.sttln1.wa.home.com [24.19.193.36]) by mxu2.u.washington.edu (8.9.3+UW00.02/8.9.3+UW99.09) with ESMTP id XAA03745 for ; Thu, 27 Jul 2000 23:45:45 -0700 Received: from c1056043-a (c1056043-a [24.19.193.36]) by boobaz.net (8.9.3/8.9.3) with ESMTP id XAA03983 for ; Thu, 27 Jul 2000 23:45:45 -0700 Date: Thu, 27 Jul 2000 23:45:45 -0700 (PDT) From: Mike X-Sender: mike@c1056043-a.sttln1.wa.home.com To: UW Linux Group Subject: OT: Re: how to make a directory link to /dev/null??? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII That's a pretty good idea. But if you'd still like to use your browser cache you could use scripts to delete your cache (and other miscellaneous files). I have a generic script called "junkit" which takes a file or directory as argument and, if it exists, it gets deleted. Works great for those pesky cookies and browser histories too! Run that from cron once (or more) a day and you're all set (assuming you've exited your browser): ######################### #!/bin/sh # If the specified file/directory exists, delete it. arg=$1 if [ -d $arg ]; then rm -rf $arg elif [ -w $arg ]; then rm -f $arg else exit fi ######################### --------------------------- -=<(| mike@boobaz.net |)>=- On Thu, 27 Jul 2000, Steve Juranich wrote: |You don't want to use the mkdir command before. Just type | |ln -s /dev/null junk | |And that /should/ do the trick. I know that I used to have my |~/.netscape/cache directory linked to /dev/null in the same way and that's |how I did it. Worked like a charm. | |-------------------------------------------------------------------------- |Stephen W. Juranich sjuranic@ee.washington.edu |Electrical Engineering http://students.washington.edu/sjuranic |University of Washington http://truk.ee.washington.edu/ssli | | |On Thu, 27 Jul 2000, F. Pascual wrote: | |> I would like to make a directory (call it 'junk') symbolically linked to /dev/null, such that when I transfer files to the directory 'junk', they get written to /dev/null. |> |> however, when I do this: |> |> mkdir junk |> ln -s /dev/null junk |> |> ...there is a symbolically linked _file_ contained within 'junk' to /dev/null; the entire directory itself is not linked to /dev/null. I can still copy files to 'junk' and have then show up when I ls from within 'junk'; they don't get written to dev nu |ll. |> |> Anyone know how to create the link to /dev/null so that when anything gets written to the directory 'junk', it goes to /dev/null? |> |> |> |> Get your FREE Email and Voicemail at Lycos Communications - http://comm.lycos.com |> | .