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 From: Mark Himsley To: Jorge Goncalvez Cc: cygwin AT cygwin DOT com Subject: Re: Run a perl script with cygwin Date: Tue, 04 Dec 2001 19:53:33 +0000 Message-ID: References: <200112041617 DOT RAA18073 AT cabs40 DOT col DOT bsf DOT alcatel DOT fr> In-Reply-To: <200112041617.RAA18073@cabs40.col.bsf.alcatel.fr> X-Mailer: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Tue, 4 Dec 2001 17:17:48 +0100 (MET) you wrote: >I have this Perl script under Cygwin > >#!/usr/local/bin/perl -w > >my $cmd="c:/cygwin/bin/iu-config"; >system($cmd); > >it fails iu-config is the cygwin script shell(/bin/sh). >Why?Althought It works when i type iu-config from the bash Cygwin Your $cmd includes a DOS path and not the correct Cygwin path. Try: my $cmd="/bin/iu-config"; -- Mark Himsley In Acton -- 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/