delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/01/22:01:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sun, 1 Aug 2004 20:59:31 -0500 (CDT)
From: elijah wright <elw AT stderr DOT org>
To: jhart AT bates DOT edu
Cc: cygwin AT cygwin DOT com
Subject: Re: 1.5.10: Apache, CGIs giving "User defined signal 2" or silent failure
In-Reply-To: <1091403595.410d7f4b3a5ab@webmail.bates.edu>
Message-ID: <Pine.LNX.4.58.0408012058030.4734@illuminati.stderr.org>
References: <1091403595 DOT 410d7f4b3a5ab AT webmail DOT bates DOT edu>
MIME-Version: 1.0
X-IsSubscribed: yes

> I'm running Cygwin 1.5.10 on Windows XP Pro, Apache 1.3.29 (Cygwin),
> gawk 3.1.3 included with Cygwin, and curl 7.11.1 (i686-pc-cygwin). I
> wrote a simple CGI in gawk:
>
> #!/bin/gawk -f
> BEGIN {
>         print "Content-type: text/plain\n"
>         cmd = "curl -s http://www.bates.edu/ils"
>         #cmd = "awk 'BEGIN{print "Hello World"}'"
>         #cmd = "ls -l"
>
>         while(( cmd|getline )>0) print $0
> }
>
> If run from the command line, this works fine. If called from a web browser, the
> result is empty and the httpd error_log often says:


what happens if you give the full paths to curl and awk, rather than just
assuming they're in the path?

--elijah

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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