From owner-freebsd-questions@FreeBSD.ORG Sun Feb 29 14:25:26 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D132816A4CE for ; Sun, 29 Feb 2004 14:25:26 -0800 (PST) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F56843D45 for ; Sun, 29 Feb 2004 14:25:26 -0800 (PST) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id i1TMPEV25545; Sun, 29 Feb 2004 17:25:14 -0500 (EST) From: Jerry McAllister Message-Id: <200402292225.i1TMPEV25545@clunix.cl.msu.edu> To: Barbish3@adelphia.net Date: Sun, 29 Feb 2004 17:25:14 -0500 (EST) In-Reply-To: from "JJB" at Feb 28, 2004 11:11:19 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: Marty Landman cc: "freebsd-questions@FreeBSD. ORG" Subject: Re: run perl scrip with post form from apache X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Feb 2004 22:25:27 -0000 > > Thanks for you pointers, they helped me to move further > on into different problem. > > I added the addhandler statement and ExecCGI > > There are no at all > > The httpd-error.log has these messages now > > (2)No such file or directory: exec of /usr/local/www/data/sim.pl > failed > [client ] Premature end of script headers: > /usr/local/www/data/sim.pl I haven't followed the whole thread, just seen this piece. But, whenever I have seen that error message (and it has been many times) I discovered that the blank line ending the header in the page I am trying to write back out is missing. It has to have a completely empty line - not even any white space characters on it. Sometimes it got that way because some part of my cgi code failed and sometimes it was because I just forgot to include the double newline (\n\n) in my print statement. I won't guarantee that is it, but is something to check. ////jerry > > The sim.pl file is in that directory and it was given to me as am > working script. > > Any idea what is wrong now >