rm -r /cbbconfg/BRCH/tmp
rm: cannot determine if this is an ancestor of the current working directory
views:
62answers:
3
+1
A:
rm
is confused as to whether you are removing a directory that is part of the present working directory. check to see if there is a link or something that is causing this.
ghostdog74
2010-03-29 10:23:22
any idea how can I proceed here..
flash
2010-03-29 12:36:48
try running `rm -fr`
ghostdog74
2010-03-29 13:18:12
+1
A:
From what I remember this is an old bug in Solaris 10.
Ah-ha.
Have a look at this OpenSolaris bug report.
What about trying to do the delete recursively using find? Maybe something like:
find /cbbconfg -depth -exec rm -rf {} \;
Rob Wells
2010-03-29 10:26:51
A:
I have solved it in the following way!! I have moved to that directory and ran the command :D
flash
2010-03-29 14:21:33