Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2002 13:36:46 -0600
From:      Julian Peterson <weaver@earthcorp.com>
To:        "Drew Tomlinson" <drew@mykitchentable.net>, "Dan Nelson" <dnelson@allantgroup.com>
Cc:        "Walter Hop" <walter@binity.com>, <smorton@acm.org>, <questions@FreeBSD.ORG>
Subject:   Re: Showing Uptime Via webpage
Message-ID:  <20020325201002.7859C37B41B@hub.freebsd.org>
In-Reply-To: <008401c1d42d$7ad8f420$f82a6ba5@lc.ca.gov>
References:  <Pine.GSO.4.44L0.0203232239500.14624-100000@shell.core.com> <20020325182247.GD14939@dan.emsphone.com> <008401c1d42d$7ad8f420$f82a6ba5@lc.ca.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 25 Mar 2002 12:47 pm, Drew Tomlinson wrote:
> ----- Original Message -----
> From: "Dan Nelson" <dnelson@allantgroup.com>
> To: "Drew Tomlinson" <drew@mykitchentable.net>
> Cc: "Walter Hop" <walter@binity.com>; <smorton@acm.org>;
> <questions@FreeBSD.ORG>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020325201002.7859C37B41B>