Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2002 20:23:14 +0100
From:      Paul Everlund <tdv94ped@cs.umu.se>
To:        Drew Tomlinson <drew@mykitchentable.net>
Cc:        Dan Nelson <dnelson@allantgroup.com>, Walter Hop <walter@binity.com>, smorton@acm.org, questions@FreeBSD.ORG
Subject:   Re: Showing Uptime Via webpage
Message-ID:  <3C9F7922.C0F9AACB@cs.umu.se>
References:  <Pine.GSO.4.44L0.0203232239500.14624-100000@shell.core.com> <3C9E0754.2010104@verizon.net> <006201c1d423$ee01be00$f82a6ba5@lc.ca.gov> <200203251840.33315@silver.dt1.binity.net> <007a01c1d426$38b2c410$f82a6ba5@lc.ca.gov> <20020325182247.GD14939@dan.emsphone.com> <008401c1d42d$7ad8f420$f82a6ba5@lc.ca.gov> <3C9F74C8.9165C0F1@cs.umu.se> <00ce01c1d430$d748dd80$f82a6ba5@lc.ca.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
[big snip]

> #!/usr/bin/perl
> print "Content-type: text/plain\n\n";
> system ("uptime");

> The font changes but the uptime is still not displayed.

Take a look at http://www.cs.umu.se/~tdv94ped/cgi-bin/up.html

I'm using the following (path to perl is different as this is
run on another Unix)...

File "up":
#!/usr/local/bin/perl
print "Content-type: text/plain\n\n";
system("uptime");

-rwxr-xr-x   1 tdv94ped tdv94         80 Mar 25 20:16 up*

File "up.html":
<html>
<body>
<!--#exec cgi="up"-->
</body>
</html>

-rw-r--r--   1 tdv94ped tdv94         52 Mar 25 20:15 up.html

If this doesn't work on your FreeBSD box something is very strange.
Strange as you're able to run other types of CGI-scripts, but not
this particular.

I hope someone can help you out, or that you find out yourself.
Good luck!

Best regards,
Paul

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?3C9F7922.C0F9AACB>