delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/31/18:16:26

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
Subject: Re: "Sh" scripting using win-32 aka cygwin32
To: Larry Hall <cygwin AT cygwin DOT com>
From: "Sharron D Allen" <Sharron_D_Allen AT west DOT raytheon DOT com>
Date: Wed, 31 Jan 2001 16:13:12 -0700
Message-ID: <OF41712296.76075FCD-ON072569E5.007EE656@rsc.raytheon.com>
X-MIMETrack: Serialize by Router on RWSMTA20/SRV/Raytheon/US(Release 5.0.5 |September 22, 2000) at
01/31/2001 04:13:29 PM
MIME-Version: 1.0

Larry,

Just using '#!/bin/sh' is not adequate because cygwin is a window's
application and our browsers will do
what it thinks is right to interpret a script file.

It would be the correct way to start a script if the script were on a UNIX
system.

With Cygwin files in the C:/ directory are mounted to seem like a UNIX
system.
For example.

mount C:/Unix files / (this makes a home directory '/' that has access to
C:/Unix files)
mount C:/ /c   (this makes a directory (this makes a directory '/c' that
has access to the C:/)
mount C:/Unix files/bin /bin (this makes a directory  '/bin' that has
access to the C:/Unix files/bin)

These are POSIX directories only. Windows will not recognize these
directories. Only cygwin files (can be executed in a DOS window) will.





This email came to




Larry Hall <cygwin AT cygwin DOT com> on 01/31/2001 04:01:34 PM

To:   "Sharron D Allen" <Sharron_D_Allen AT west DOT raytheon DOT com>
cc:

Subject:  Re: "Sh" scripting using win-32 aka cygwin32


At 05:58 PM 1/31/2001, Sharron D Allen wrote:
>All,
>I am currently using software called win-32 aka cygwin32 (a
>cygnus/gnu/windows product). I know
>how everything works except for one thing. I do not know how to call the
>'sh' shell from a file.
>My problem:
>I have a web page/form that posts information to a file called
thankyou.cgi
>Well I want to test this with out having CGI access, if possible.
>What should I do to have my web page/form successfully post information to
>thankyou.cgi.
>
>currently my first line in my script is: #!/bin/sh (the actual POSIX
location of 'sh')
>I have tried
>#!/C:/location/sh.exe
>C:/location/sh.exe



Excuse me.  I don't know much about CGI but can you tell me why #!/bin/sh
is
not adequate?



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?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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