Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 From: "Sharron D Allen" Date: Wed, 31 Jan 2001 16:13:12 -0700 Message-ID: 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 Content-type: text/plain; charset=us-ascii 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 on 01/31/2001 04:01:34 PM To: "Sharron D Allen" 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