This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: "Sh" scripting using win-32 aka cygwin32
- To: Larry Hall <cygwin at cygwin dot com>
- Subject: Re: "Sh" scripting using win-32 aka cygwin32
- From: "Sharron D Allen" <Sharron_D_Allen at west dot raytheon dot com>
- Date: Wed, 31 Jan 2001 16:13:12 -0700
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@cygwin.com> on 01/31/2001 04:01:34 PM
To: "Sharron D Allen" <Sharron_D_Allen@west.raytheon.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@rfk.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