From owner-freebsd-questions Mon Mar 25 11:27:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pth3kpc.mcc.virginia.edu (pth3kpc.mcc.Virginia.EDU [128.143.108.36]) by hub.freebsd.org (Postfix) with ESMTP id E041037B400 for ; Mon, 25 Mar 2002 11:27:46 -0800 (PST) Received: (from pth3k@localhost) by pth3kpc.mcc.virginia.edu (8.11.6/8.11.6) id g2PJRjn70037 for questions@freebsd.org; Mon, 25 Mar 2002 14:27:45 -0500 (EST) (envelope-from pth3k) Message-Id: <200203251927.g2PJRjn70037@pth3kpc.mcc.virginia.edu> Content-Type: text/plain; charset="iso-8859-1" From: Ty Hoeffer To: questions@freebsd.org Subject: Showing Uptime Via webpage Date: Mon, 25 Mar 2002 14:27:45 -0500 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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