About HyperNews
 Next-in-Thread Next-in-Thread
 Next Message Next Message

Idea Debugging Suggestion 

Keywords: debugging, nph
Forum: HyperNews Bugs
Date: 1995, Sep 21
From: Daniel M LaLiberte <liberte>

Rob Hartill offers the following suggestion for a way
to debug HyperNews, and cgi-bin programs in general.

 From: Rob Hartill <hartill@lanl.gov>
 Subject: Re: HyperNews and Apache WWW server
 Score: 100
 First 50 lines:
  john@infomatch.com (John Chapman) wrote:
  >
  >I am wondering if anyone has got the Perl HyperNews message board scripts 
  >to operate with Apache. We are getting a :
  >[Tue Sep 19 10:20:54 1995] access to 
  >/var/web/cgi-bin/HyperNews/.scripts/system-setup.pl failed, reason: 
  >malformed header from script
  >If you run the script from the CLI it does produce html so I am a tad 
  >perplexed. Thanks for any info at all..

  copy "system-setup.pl" to "nph-system-setup.pl" then telnet to
  the server and request it, e.g.

  telnet server.name 80

  GET /cgi-bin/HyperNews/.scripts/nph-system-setup.pl HTTP/1.0
  [blank line here]

  What you *should* then see are valid HTTP headers returned by the script, but
  what you will (hopefully) see will be some garbage mixed in with the
  headers. The garbage being some stray error message or verbose stdout
  from a command being called. HTTP headers are terminated by a blank line
  (\r\n in reality).
  rob
  -- 
  http://nqcd.lanl.gov/~hartill/
 

 Next-in-Thread Next-in-Thread
 Next Message Next Message
Inline:
 1 1
 All All
Outline:
 1 1
 2 2
 All All

 Add Add
to: "Debugging Suggestion"

 Members Members
 Subscribe Subscribe
 Admin Mode Admin Mode
 Show Frames Show Frames
 Help Help


|| About || Instructions || Test || Guestbook || Future || || Source || Installation || Consortium ||

Earn money with Scour!
Google
 
Web www.HyperNews.org
Earn money with Scour!