[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

htsearch & cgi-bin



-----BEGIN PGP SIGNED MESSAGE-----


Looks like it doesn't like the exec routine:

httpd: [Tue Feb 23 12:02:13 1999] [error] [client 207.238.135.70]
Premature end of script headers: /home/http/prepub/dev/cgi-bin/htsearch  

Ideas anyone?


- -- 
Aaron Turner           | Either which way, one half dozen or another. 
aturner@pobox.com      | Check out the Red Hat Linux User's FAQ Online!
www.pobox.com/~aturner | http://www.pobox.com/~aturner/RedHat-FAQ/
All emails from this account are PGP signed.  Lack of a signature is "bad".
PGP Key fingerprint = FB E1 CE ED 57 E4 AB 80  59 6E 60 BF 45 1B 20 E8


On Mon, 22 Feb 1999, Daniel E. Markle wrote:

> On Mon, Feb 22, 1999 at 02:41:18PM -0800, Aaron D. Turner wrote:
> > > --- start htsearch ---
> > > #!/bin/bash
> > > /usr/local/bin/htsearch -c ../htdig/conf/htdig.conf
> > > ---  end htsearch  ---
> > Wouldn't that cause an extra fork()?  I guess it would work, not really
> 
> Yes, but we could get rid of that too by doing it this way:
> 
> --- start htsearch ---
> exec /usr/local/bin/htsearch -c ../htdig/conf/htdig.conf
> ---  end htsearch  ---
> 
> We don't really need the #!/bin/bash in this case, and exec will force it to
> use the current process.
> 
> -- 
> -------------------
> Daniel E. Markle
> syntax@ashtech.net
> 
> Windows NT - Growing at 1/20th the rate of GNU/Linux, and 1/2 the rate of MacOS.
> Perhaps there's a reason?
> -------------------
> 


-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBNtMQHDM3jpXy1kJtAQFY0QQAoV32pRYYhNBjydwZBfkoyPq65KlY6HMh
U1/Pr6P9CiJ1+pcm6xgGddRC7qJ13M4eBpDpPd/DOR2mJKn9gQmObpvrp5tRXXgI
TZi6zPK70C3+WNfTsl5qHjYWJbKaRrJuoktliXsE6L1WM20Mqzzn95MmE3Drct+0
FSkyCLY7UwA=
=iVJM
-----END PGP SIGNATURE-----