Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3E524B00.2030100@rfk.com>
Date: Tue, 18 Feb 2003 10:02:24 -0500
From: "Larry Hall (RFK Partners, Inc.)" <lhall@rfk.com>
Reply-To: lhall@rfk.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: John McAllister <john.mcallister@castlewebsolutions.com>
CC: cygwin@cygwin.com
Subject: Re: CGI Problem - only part of file written to HTML page
References: <DJEELCAOBFKBPMEIMOEGOEIKCAAA.john.mcallister@castlewebsolutions.com>
In-Reply-To: <DJEELCAOBFKBPMEIMOEGOEIKCAAA.john.mcallister@castlewebsolutions.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

John McAllister wrote:
> Hello,
> 
> I have a problem with my CGI program in the Cygwin environment. I am using C
> as the cgi-programming language. I am developing an application on a UNIX
> platform, and I use Apache as the server. My cgi works fine in the UNIX
> environment at work, but I wanted to be able to work on it at home. So I
> turned to cgywin.
> 
> I have downloaded apache to my local computer, so that my PC becomes the
> client and server. I have configured apache correctly, and can see some of
> my webpages. The problem is that all my javascript and HTML is not being
> written out properly. My C program reads in an (already written) javascript
> textfile into a file. This file is then printed out along with the HTML
> headers and body etc. On the LAN at work, using UNIX, everything works
> perfect.
> 
> I merely copied all of the necessary files to cygwin. From cygwin, the HTML
> headers are printed out, and about half of the javascript text file is
> written out - but then the output has suddenly stopped. I am fairly new to
> cygwin and cgi-programming, but I believe this to be a cygwin problem -
> because my application works fine in its native environment.
> 
> Suggestions please!


Could be a text/binary mode issue.  Check the Cygwin documentation (FAQ/
User's Guide) and email archives for plenty of discussion about this.

If that's not it and you're still stuck, see <cygwin.com/bugs.html>.

-- 
Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

