We have had a similar circumstance and not gotten the space back until we
kicked all the users off.


I am on Solaris, not AIX.

I have a little UNIX script that I try and run before doing an 'rm' on a
file:


#!/bin/ksh
#getting names on fuser command
filename=$1
if [ "$filename" = "" ];then
        echo Usage $0  file name to check for in use
        exit 1;
fi

if  [ ! -f  $filename ];then
        echo $0: Unable to Open $filename
        exit 1;
fi
for x in  `fuser -u $filename  2>&1 | tr ")o(" "\n" | cut -d\( -f2`
do
 grep $x /etc/passwd|cut -d: -f5| sort -u
done

To use it, I do:

file.in.use /mccbase3/udthome3/MCC.MP/VOC
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to