#!/bin/sh ################################################################################ #set -v -x # groups, hostname is a ucb command PATH=$PATH:/usr/ucb/ PATH=$PATH:/usr/sbin:/sbin export PATH ################################################################################ # @(#) show information about current system and environment (John S. Urban)' ################################################################################ SHOW(){ CMD="$*" if [ "`which $1 2>/dev/null`" != '' ] then exec 2>/dev/null cat </dev/null FULLPATH=`which $1 2>/dev/null` if [ $FULLPATH != '' ] then shift 1 echo COMPILER : $FULLPATH $@ # $FULLPATH $@ fi ) done ) 2>/dev/null } ################################################################################ #------------------------------------------- SHOW hostname SHOW whoami SHOW hostid SHOW uname -a SHOW id SHOW pwd SHOW uptime SHOW nslookup `hostname` SHOW getmac # Get mac address on MSWindows SHOW quota #------------------------------------------- cat <&1 ################################################################################ [ -r /etc/release ] && cat /etc/release [ -r /etc/SuSE-release ] && cat /etc/SuSE-release # SUSE Linux ################################################################################ cat <