This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: executing perl from command line (cygwin)
- From: "Gerrit P. Haase" <gp at familiehaase dot 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>
- Date: Sat, 5 Oct 2002 11:03:30 +0200
- Subject: Re: executing perl from command line (cygwin)
- Organization: Esse keine toten Tiere
- References: <4B8F50430DC6D611875E00508BE14DF2507D8D@pasmail.office.tmcs>
- Reply-to: "Gerrit @ cygwin" <cygwin at cygwin dot com>
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@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/