Date: Wed, 24 Jul 2002 23:41:50 +0200 From: Mark Rowlands <mark.rowlands@minmail.net> To: "MET" <met@uberstats.com>, <freebsd-questions@FreeBSD.ORG> Subject: Re: Checking the Version? Message-ID: <200207242341.50669.mark.rowlands@minmail.net> In-Reply-To: <001201c2332f$2141b8f0$6801a8c0@SURVIVAL> References: <001201c2332f$2141b8f0$6801a8c0@SURVIVAL>
index | next in thread | previous in thread | raw e-mail
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.
>
> Oh yeah, the script is for an email signature.
>
> - Matthew
>
> /**************************************************************
>
> Matthew Metnetsky
>
> <mailto:met@uberstats.com> met@uberstats.com
>
> **************************************************************/
#!/usr/bin/perl
use LWP::Simple;
foreach $opt (head('http://localhost/')) {
if ($ver=~/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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207242341.50669.mark.rowlands>
