#!/usr/bin/perl # Available under BSD License. # See url http://www.cyberciti.biz/faq/how-can-i-find-out-perl-version/ print "Content-type: text/html\n\n"; # $command=`cat /etc/*-release`; # $command=`cat /etc/issue`; $command=`cat /etc/redhat-release`; $title = "Linux Distribution & Kernel"; print "$title";print "

$title

\n"; print $command; print "

"; $command=`uname -mrs`; print $command; $command=`httpd -v`; $title = "Apache version"; print "$title";print "

$title

\n"; print $command; # $command=`httpd -l`; # $title = "Apache compiled mods"; # print "$title";print "

$title

\n"; # print $command; $command=`mysql -V`; $title = "MySQL"; print "$title";print "

$title

\n"; print $command; $command=`php -v`; $title = "PHP"; print "$title";print "

$title

\n"; print $command; $command=`perl -v`; $title = "Perl version";print "Content-type: text/html\n\n"; print "$title";print "

$title

\n"; print $command; $command=`diff -v`; $title = "diff & grep version";print "Content-type: text/html\n\n"; print "$title";print "

$title

\n"; print $command; print "

"; $command=`grep -V`; print $command; $command=`which bash`; $title = "bash & diff location";print "Content-type: text/html\n\n"; print "$title";print "

$title

\n"; print $command; print "

"; $command=`which diff`; print $command; print "";