Thread View: comp.sys.next.sysadmin
3 messages
3 total messages
Started by Tim Spencer - EECS System Staff ...
Thu, 06 Aug 1992 18:38
.NextTrash woes...
Author: Tim Spencer - EECS System Staff ...
Date: Thu, 06 Aug 1992 18:38
Date: Thu, 06 Aug 1992 18:38
10 lines
1037 bytes
1037 bytes
Hello! We have a bunch of NeXTs on a mixed network with lots and lots of
NFS mountings everywhere, and the NeXTs are always generating .NextTrash
directories all over in places where they are not appreciated. Is there
a global dwrite that can stop this? Any other fun solutions? Any help would
be vastly appreciated! Thanks, and have fun!
--
Tim Spencer: junior somebody at WSU. With EECS Systems Support
I want Ethernet!! I like NeXT's!!
tspencer@eecs.wsu.edu tspencer@snake.cs.uidaho.edu tspencer@wsuaix.csc.wsu.edu
Re: .NextTrash woes...
Author: L J "Jim" Kiraly
Date: Fri, 07 Aug 1992 15:14
Date: Fri, 07 Aug 1992 15:14
47 lines
2471 bytes
2471 bytes
In article <1992Aug6.183858.3316@serval.net.wsu.edu> tspencer@tek4.eecs.wsu.edu
(Tim Spencer - EECS System Staff Slave) writes:
>Hello! We have a bunch of NeXTs on a mixed network with lots and lots of
>NFS mountings everywhere, and the NeXTs are always generating .NextTrash
>directories all over in places where they are not appreciated. Is there
>a global dwrite that can stop this? Any other fun solutions? Any help would
>be vastly appreciated! Thanks, and have fun!
>
I posted our solution to this very same problem a while ago. This empties the
recyclers but doesn't prevent them from being created:
-----------
We run a script as part of the /usr/adm/daily file to search for and empty
NextTrash directories. This gets rid of all files over 1 day old and empties
all of the user accounts (in /user on our machines) NFS mounted directories
(/clients) and other stuff. Just edit the searchlist to whatever is
appropriate for your site and add it to your daily file. Note if the
directories specified in the searchlist don't exist, nothing happens-
NOTE THE EMBEDDED... rm -rf {} ... AND USE AT YOUR OWN RISK!!
-------------------
# --- Empty the Recycler(s) --- added by Jim Kiraly July 9, 1992
# Removes files (incluing subdirectories) which haven't
# changed after a day's time, including NFS mounted directories
searchlist="/.NeXT/.NextTrash /.NextTrash /clients/.NextTrash
/me/.NeXT/.NextTrash /user"
for i in $searchlist
do
if [ -d $i ]
then
trashlist=`find $i -type d -name .NextTrash -prune -print`
for j in $trashlist
do
> $j/TeMpTeSt
rm $j/TeMpTeSt
echo 'Removing files more than 1 day old from recycler: '$j
find $j -ctime +1 -depth -exec rm -rf {} \;
done
fi
done
--
__________________________________________________________________
Jim Kiraly- jim@ljkiraly.lerc.nasa.gov- NASA Lewis Research Center
----------------- NeXT Mail preferred ----------------------------
Re: .NextTrash woes...
Author: Dennis Glatting
Date: Sat, 08 Aug 1992 20:46
Date: Sat, 08 Aug 1992 20:46
20 lines
1115 bytes
1115 bytes
In article <1992Aug6.183858.3316@serval.net.wsu.edu> tspencer@tek4.eecs.wsu.edu (Tim Spencer - EECS System Staff Slave) writes: > Hello! We have a bunch of NeXTs on a mixed network with lots and lots of > NFS mountings everywhere, and the NeXTs are always generating .NextTrash > directories all over in places where they are not appreciated. Is there > a global dwrite that can stop this? Any other fun solutions? Any help would > be vastly appreciated! Thanks, and have fun! Is the problem that they are created; not emptied; or both. I can help with the automatic empting problem. -- Dennis P. Glatting Sr. Technical Manager Trirex Systems Inc. 315 Post Road West Westport, Connecticut 06880 203-221-4614
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads