Date: Mon, 25 Mar 2002 14:27:45 -0500 From: Ty Hoeffer <pth3k@pth3kpc.mcc.virginia.edu> To: questions@freebsd.org Subject: Showing Uptime Via webpage Message-ID: <200203251927.g2PJRjn70037@pth3kpc.mcc.virginia.edu>
index | next in thread | raw e-mail
Strange! I just tried it on my web server & it shows the correct
uptime
for me..
I just created a file called uptime.cgi in my htdocs dir (
/usr/local/apache/htdocs ) & did a:
chmod 755 uptime.cgi
It produced:
2:21PM up 6 days, 2:56, 2 users, load averages: 0.22, 0.23, 0.13
pth3kpc# more uptime.cgi
#!/usr/bin/perl
print "Content-type: text/html\n\n";
system("uptime");
pth3kpc#
Ty
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203251927.g2PJRjn70037>
