Originally posted by: rob_hansen
Hello,
I am using the following find command in a shell script to find orphan files (files with no UID/GID) on AIX servers. It works for fine for most of the servers but fails for a few. The code and error are below:
case "$OSNAME" in
AIX) print "Orphan files found..."
nice find / -name "/proc" -prune -o \
\( -fstype jfs -o -fstype jfs2 \) -a \( -nouser -o -nogroup \) -print | xargs ls -ld
The error:
ls: 0653-341 The file /opt/wily/EM1/Baseline/Individual does not exist.
ls: 0653-341 The file JVM does not exist.
ls: 0653-341 The file Alert does not exist.
ls: 0653-341 The file MM/JWG36.jar does not exist.
Please help. Thanks.
#AIX-Forum