Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <005001c1af29$a7d66490$0d00a8c0@mchasecompaq> From: "Michael A Chase" To: "Jorge Goncalvez" , References: <200202061030 DOT LAA28866 AT cabs40 DOT col DOT bsf DOT alcatel DOT fr> Subject: Re: Re:symlinks Date: Wed, 6 Feb 2002 08:09:14 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 ----- Original Message ----- From: "Jorge Goncalvez" To: Sent: Wednesday, February 06, 2002 02:30 Subject: Re:symlinks > Hi, I have made a symlink with the cygwin command ln -s and i wanted to remove > it by Perl code: > I have this: > $PROG2 = "C:\\cygwin\\bootp\\linux\\install "; > if (-l $PROG2) > { > > system "rm $PROG2"; > > } > else{ > print "popo"; > } > > The problem is that the symlink install it isn't removed althought it is present > with ls -l in the good directory? > Why? > I tested my rm command by hand and it works it seems -l not working. > Thanks. Have you tried Perl's unlink()? -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.htm Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/