This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Run a perl script with cygwin


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]