delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/22/17:18:11

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
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20030622211445.65693.qmail@web14207.mail.yahoo.com>
Date: Sun, 22 Jun 2003 14:14:45 -0700 (PDT)
From: "Ling F. Zhang" <lingfengz AT yahoo DOT com>
Reply-To: lingfengz AT yahoo DOT com
Subject: Re: cygwin and the rest of the Windows
To: cygwin AT cygwin DOT com
In-Reply-To: <Pine.GSO.4.44.0306221536060.22307-100000@slinky.cs.nyu.edu>
MIME-Version: 1.0

okay, a summary of what I am doing:
case 1:
c:\cygwin\bin\perl.bat reads:

@echo off
c:\cygwin\bin\bash --login -c "/usr/bin/perl %1 %2 %3
%4 %5 %6 %7 %8 %9"

associating the .pl file with
c:\cygwin\bin\perl.bat %1

and the perl file begins with:
#!/usr/bin/perl

one command line, I ran:
c:\program files\apache
group\apache2\cgi-bin\printenv.pl
and get the error:
Files\Apache: line 1: C:Program: command not found
OKAY, this looks like caused by the different b/t
winFS and POSIX....since Igor said he was successful
in this mode, can you point out what's the problem?

case 2:
associating .pl file with
c:\cygwin\bin\bash -c %1
and the file begins with
#!/usr/bin/perl
I get the same error as case 1...

case 3:
the only way I can now run the .pl file from command
line is:
c:\path with space\\cygwin\bin\bash -c printenv.pl

but what I really want is:
to run .pl file like normal in windows command prompt:
i.e. c:\path with space\printenv.pl
WITHOUT using a native windows perl interpretor (like
ActivePerl)
if this is not possible, at least I should be able to
run it as a cgi-script...

thanx for all your help so far igor...I am just a
little slow on this right now...

--Matthew Ling F. Zhang


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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