delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/04/14:54:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
Subject: Re: Run a perl script with cygwin
Date: Tue, 04 Dec 2001 19:53:33 +0000
Message-ID: <laaq0us44ua6t94tpc7n62lok37qkekbj5@4ax.com>
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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019