This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Run a perl script with cygwin
- From: Mark Himsley <mark at mdsh dot com>
- To: Jorge Goncalvez <goncal11 at col dot bsf dot alcatel dot fr>
- Cc: cygwin at cygwin dot com
- Date: Tue, 04 Dec 2001 19:53:33 +0000
- Subject: Re: Run a perl script with cygwin
- References: <200112041617.RAA18073@cabs40.col.bsf.alcatel.fr>
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/