Mini Shell

Direktori : /proc/self/root/opt/sharedrads/
Upload File :
Current File : //proc/self/root/opt/sharedrads/check_server

#!/bin/bash
# Shared RADS Tools, written by Erik Soroka (eriks@imhadmin.net, ext 834)
# This tool reports all pertinent data on a particular user for RA review.

#load functions	+ banners
if [ -f /opt/sharedrads/radsfunctions.sh ]; then
    source /opt/sharedrads/radsfunctions.sh
else
    source /opt/dedrads/radsfunctions.sh
fi

if [ "$RADSCOLORS" == "off" ];
then
	radsbanner-nocolor
else
	radsbanner
fi

echo -ne "\033[40;37;0m"
/usr/bin/top -bcs -n1 | grep -v "Tasks:" | head -4
echo -en " \033[0m"

#SET A UNIQUE SESSION ID
SESSIONID=`date +%s`

#general CPU output
if [ -f /opt/sharedrads/check_cpu ]; then
    /opt/sharedrads/check_cpu
else
    /opt/dedrads/check_cpu
fi

Zerion Mini Shell 1.0