delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/05/05:08:40

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
Date: Sat, 5 Oct 2002 11:03:30 +0200
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Reply-To: "Gerrit @ cygwin" <cygwin AT cygwin DOT com>
Organization: Esse keine toten Tiere
X-Priority: 3 (Normal)
Message-ID: <155698278631.20021005110330@familiehaase.de>
To: Smithesh Ramachandran <smithesh AT ticketmaster DOT com>
CC: "'pdesjardins AT oakgroup DOT com'" <pdesjardins AT oakgroup DOT com>,
"'maharig AT idirect DOT net'" <maharig AT idirect DOT net>,
"'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: executing perl from command line (cygwin)
In-Reply-To: <4B8F50430DC6D611875E00508BE14DF2507D8D@pasmail.office.tmcs>
References: <4B8F50430DC6D611875E00508BE14DF2507D8D AT pasmail DOT office DOT tmcs>
MIME-Version: 1.0

Hallo Smithesh,

Am Samstag, 5. Oktober 2002 um 01:34 schriebst du:

> Hi Peter,
> Like Mark said cygwin perl is a much better option. I use it quite often.

> I think you still can execute active perl  or any windows executable on
> Cygwin. 

> Make sure you are escaping '\' by '/'  on the directory paths. For e.g.,  if
> you are trying to execute something on your windows at
> C:\Sample\pscp.exe.

> Then you will do the following on your cygwin prompt
> admin AT TMLA_SRAMACHAND ~ C:/\Sample/\pscp.exe

The problem with ActiveStates Perl is that it knows nothing about
Cygwin paths.  If you want to read a file '/usr/test/text.txt' with
ActiveState Perl you need to translate the paths to Windows syntax
(-> 'C:\cygwin\usr\test\text.txt').
There are tools included with Cygwin to help with this (cygpath.exe),
but it is a pita.  Cygwin Perl is linked against cygwin1.dll and all
this translation is done automatically for you.


Gerrit
-- 
=^..^=


--
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