delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/24/11:29:11

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <C2D7D58DBFE9D111B0480060086E96350266DC03@mail.gft.de>
From: "Schaible, Joerg" <Joerg DOT Schaible AT gft DOT de>
To: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>,
"John J. Lee"
<phrxy AT csv DOT warwick DOT ac DOT uk>, cygwin AT sources DOT redhat DOT com
Subject: RE: UNC paths and executables
Date: Tue, 24 Oct 2000 10:23:00 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id EAA07985

Hi Larry, hi John,

I noticed a similar problem starting a DOS batch file.

$ /cygdrive/c/test.bat
The system cannot find the given path.

This works:
$ `cygpath -w /cygdrive/c/test.bat`
echo Hello!
Hello!

The bash seems to have a feature to run a "X.bat" as "cmd /c X.bat", but the
magic fails to convert the path of the first argument.

Greetings,
Jörg

> -----Original Message-----
> From: Larry Hall (RFK Partners, Inc) [mailto:lhall AT rfk DOT com]
> Sent: Monday, October 23, 2000 8:45 PM
> To: John J. Lee; cygwin AT sources DOT redhat DOT com
> Subject: Re: UNC paths and executables
> 
> 
> At 02:38 PM 10/23/2000, John J. Lee wrote:
> 
> >I installed cygwin a few days ago, and was able to run some 
> perl scripts
> >over a windows fileshare using UNC names: 
> //host/perl/site/bin/script.pl
> >worked fine, unless I'm imagining things.  Now, mysteriously, it has
> >stopped working:
> >
> >$ cd //host/perl/site/bin/script
> >$ ls
> >[... lots, including script.pl ...]
> >$ script.pl
> >bash: //host/perl/site/bin/script.pl: No such file or directory
> >$ //host/perl/site/bin/script.pl
> >bash: //host/perl/site/bin/script.pl: No such file or directory
> >$ ./script.pl
> >bash: ./script.pl: No such file or directory
> >$ less script.pl
> >[script displayed fine by less]
> >
> >None of the other scripts work either, and they're all 
> world-readable and
> >world-executable.
> >
> >What's going on?
> >
> >
> >John
> 
> 
> 
> I don't know how you ran this a few days ago but your problem 
> appears to 
> be that Perl isn't found (or maybe that the version you are 
> running is a
> Windows one).  Its hard to tell for sure without a cygcheck 
> -s -r -v and/or
> a look at your script though.  Try adding the proper #! line 
> to your script.
> Also, check the mail archives about this kind of problem.  
> You'll find a 
> number of queries and responses, some as recently as today!
> 
> 
> 
> Larry Hall                              lhall AT rfk DOT com
> RFK Partners, Inc.                      http://www.rfk.com
> 118 Washington Street                   (508) 893-9779 - RFK Office
> Holliston, MA 01746                     (508) 893-9889 - FAX
> 
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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