Subject: Re: Run a perl script with cygwin
From: Mark Himsley <[email-masked]>
To: Jorge Goncalvez <[email-masked]>
Cc: [email-masked]
Date: Tue, 04 Dec 2001 19:53:33 +0000

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/