From owner-freebsd-questions Mon Mar 25 12:10:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from VOLTAIRE.stic.net (mail.stic.net [204.57.118.5]) by hub.freebsd.org (Postfix) with ESMTP id 7859C37B41B for ; Mon, 25 Mar 2002 12:10:02 -0800 (PST) Received: from there ([216.198.60.70]) by VOLTAIRE.stic.net (Post.Office MTA v3.5.3 release 223 ID# 0-70040U18500L11000S0V35) with SMTP id net; Mon, 25 Mar 2002 13:38:03 -0600 Content-Type: text/plain; charset="iso-8859-1" From: Julian Peterson To: "Drew Tomlinson" , "Dan Nelson" Subject: Re: Showing Uptime Via webpage Date: Mon, 25 Mar 2002 13:36:46 -0600 X-Mailer: KMail [version 1.3.2] Cc: "Walter Hop" , , References: <20020325182247.GD14939@dan.emsphone.com> <008401c1d42d$7ad8f420$f82a6ba5@lc.ca.gov> In-Reply-To: <008401c1d42d$7ad8f420$f82a6ba5@lc.ca.gov> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020325201002.7859C37B41B@hub.freebsd.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 25 Mar 2002 12:47 pm, Drew Tomlinson wrote: > ----- Original Message ----- > From: "Dan Nelson" > To: "Drew Tomlinson" > Cc: "Walter Hop" ; ; > > Sent: Monday, March 25, 2002 10:22 AM > Subject: Re: Showing Uptime Via webpage > > > > > [in reply to Drew Tomlinson, Monday 25 March 2002 18:38] > > > > > > > > > > #!/usr/bin/perl > > > > > > print "Content-type: text/plain\n\n"; > > > > > > system ("uptime"); > > > > > > exit; > > > > > > > > > > I tried this just out of curiosity but ran into problems. I don't > > > > > get any errors but I just get a blank web page. > > > > > I'm sorry if I'm being real dense here but I have no experience with > perl and very, very little in designing web pages without the help of > (gasp) FrontPage but I'm trying to learn. > > So I assume that the \n is either a CR or and LF and I need \something > else to conform to the spec? I was just using and example that was > posted previously. > nope, that script is fine (I just checked it even). Other things to check: 1/ That the script is executable 2/ The error log from the web server 3/ The cgi settings of the web server (do you have other cgi stuff working already?) Julian. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message