From owner-freebsd-questions Wed Jul 24 14:42: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38B5237B400 for ; Wed, 24 Jul 2002 14:42:00 -0700 (PDT) Received: from rush.telenordia.se (mail.telenordia.se [194.213.64.42]) by mx1.FreeBSD.org (Postfix) with SMTP id C55E243E31 for ; Wed, 24 Jul 2002 14:41:58 -0700 (PDT) (envelope-from mark.rowlands@minmail.net) Received: (qmail 29698 invoked from network); 24 Jul 2002 23:40:51 +0200 Received: from bb-62-5-36-29.bb.tninet.se (HELO pcmarpxy.tninet.se) (62.5.36.29) by mail.telenordia.se with SMTP; 24 Jul 2002 23:40:51 +0200 Content-Type: text/plain; charset="iso-8859-1" From: Mark Rowlands To: "MET" , Subject: Re: Checking the Version? Date: Wed, 24 Jul 2002 23:41:50 +0200 User-Agent: KMail/1.4.2 References: <001201c2332f$2141b8f0$6801a8c0@SURVIVAL> In-Reply-To: <001201c2332f$2141b8f0$6801a8c0@SURVIVAL> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200207242341.50669.mark.rowlands@minmail.net> 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 Wed July 24 2002 18:28, MET wrote: > Is there a command to check which version of FreeBSD your running? I > know that I'm running 4.6 ~ however I wanted to append a script someone > shared with me that shows how long the machine has been up, with the > exact version info on all of its key software, such as FreeBSD > (naturally being the number one most important), Apache, MySQL, and PHP= =2E > > Oh yeah, the script is for an email signature. > > - Matthew > > /************************************************************** > > Matthew Metnetsky > > met@uberstats.com > > **************************************************************/ #!/usr/bin/perl use LWP::Simple; foreach $opt (head('http://localhost/')) { if ($ver=3D~/Apache/) { print $ver,"\n"; print `uname -sr`; print `mysql -V`; print `uptime`; } } or something like that To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message