Home > Archive > PERL Beginners > April 2007 > perl and cygwin perl (unix style paths)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
perl and cygwin perl (unix style paths)
|
|
|
| Hi gurus:
I am trying to run perl command via cygwin. I have cygwin mapped drive in
which i use the locally installed perl(and not cygwin perl) but apprently,
that perl is not able to find an existing file. When the same command is run
via cygwin perl, it runs fine.
Does perl on windows understand unix style path? Cygwin perl understands
unix style path. Is that the issue? what else could be the issue?
/cygdrive/c/Perl/bin/perl /temp/Nightly/bit/mailer.pl
Can't open perl script "/temp/Nightly/bit/mailer.pl": No such file or
directory
But the file exists at /cygdrive/c/cygwin/bin/perl
/temp/Nightly/bit/mailer.pl
| |
| nobull67@gmail.com 2007-04-27, 6:58 pm |
| On Apr 27, 6:17 pm, nishipraf...@gmail.com (Nishi) wrote:
> Hi gurus:
>
> I am trying to run perl command via cygwin. I have cygwin mapped drive in
> which i use the locally installed perl(and not cygwin perl) but apprently,
> that perl is not able to find an existing file. When the same command is run
> via cygwin perl, it runs fine.
>
> Does perl on windows understand unix style path?
If you mean do forward slashes work, yes.
>Cygwin perl understands
> unix style path. Is that the issue? what else could be the issue?
>
> /cygdrive/c/Perl/bin/perl /temp/Nightly/bit/mailer.pl
So /cygdrive/c/Perl/bin/perl is the native Win32 Perl?
And C:\temp\Nightly\bit\mailer.pl is the Windows pathname of the
script?
You are issuing this command in a cygwin shell?
Perhaps you should check a couple of things
/cygdrive/c/Perl/bin/perl -MCwd -e"print cwd"
/cygdrive/c/Perl/bin/perl -e"print @ARGV" /temp/Nightly/bit/mailer.pl
| |
| Yitzle 2007-04-27, 6:58 pm |
| I believe when you run CygWin it maps the directories and all that. I
think it actually "mounts" the drives etc.
If you try to run '/cygdrive/c/Perl/bin/perl' in the command prompt, I
don't think it will work. You should be able to use the Windows path,
though:
c:\Perl\bin\perl.exe "$CygWin_HOME\temp\Nightly\bit/mailer.pl"
(That variable does not really exist. Fill it in.)
On 4/27/07, Nishi <nishiprafull@gmail.com> wrote:
> Hi gurus:
>
> I am trying to run perl command via cygwin. I have cygwin mapped drive in
> which i use the locally installed perl(and not cygwin perl) but apprently,
> that perl is not able to find an existing file. When the same command is run
> via cygwin perl, it runs fine.
>
> Does perl on windows understand unix style path? Cygwin perl understands
> unix style path. Is that the issue? what else could be the issue?
>
> /cygdrive/c/Perl/bin/perl /temp/Nightly/bit/mailer.pl
>
> Can't open perl script "/temp/Nightly/bit/mailer.pl": No such file or
> directory
>
> But the file exists at /cygdrive/c/cygwin/bin/perl
> /temp/Nightly/bit/mailer.pl
>
|
|
|
|
|