Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <42E67108.3050601@alltel.net>
Date: Tue, 26 Jul 2005 12:21:12 -0500
From: Ken Dibble <kdibble@alltel.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
MIME-Version: 1.0
To: cygwin <cygwin@cygwin.com>
Subject: Re: rm filename length problem
References: <SERRANOPsygGVuwPqmB00000744@SERRANO.CAM.ARTIMI.COM>
In-Reply-To: <SERRANOPsygGVuwPqmB00000744@SERRANO.CAM.ARTIMI.COM>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes



Dave Korn wrote:

>----Original Message----
>  
>
>>From: Ken Dibble
>>Sent: 26 July 2005 17:16
>>    
>>
>
>  
>
>>I'm trying to script a cleanup of some directories prior to backup.
>>
>>I'm having a heck of a time with some long filenames.
>>    
>>
>
>  'doze and *nix both have path length limitations.  Sometimes path
>translation can push things over the limit.
>
>  
>
>>$ rm -Rf *
>>rm: cannot remove
>>
>>    
>>
>`450JUVMP/Type=click&FlightID=1991987&AdID=1986689&TargetID=2006165&Segments
>=2001081,2001256,2001550,2001551,2001761,2001784,2001916,2002090,2002592,200
>3057,20030[1]':
>  
>
>>File name too long
>>rm: cannot remove directory `450JUVMP': Directory not empty
>>    
>>
>
>  Shorten some of those names by making the prefix shorter by moving the
>entire subdir into your cygwin root!
>
>  "  mv 450JUVMP / && rm -Rf /460JUVMP  " should work....
>
>    cheers,
>      DaveK
>

Dave:
 this works.

Eric:
I figured it was a 'Doze problem.
I was just looking for a good workaround and Dave provided it.

Amazing what information is out there to be shared if you ask just half 
way civilized for it.

Thanks to you both.

Ken


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

