views:

62

answers:

3
rm -r /cbbconfg/BRCH/tmp
rm: cannot determine if this is an ancestor of the current working directory
+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
any idea how can I proceed here..
flash
try running `rm -fr`
ghostdog74
+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
the command you have specified is not helping.
flash
)-: i just used this on a sol10_3 server and it worked.
Rob Wells
A: 

I have solved it in the following way!! I have moved to that directory and ran the command :D

flash