#!/bin/sh eval `ckconfig -s || /var/local/stat/bin/ckconfig -s` eval `$binDir/configuration` PATH=$binDir:$PATH export PATH if [ "$2" = "" ] ; then echo "Usage: "$0" " exit 255 else user=$1 status=$2 fi tmpstat=$tmpDir/.userstatus oldstat=`grep -w $user $UserStatus` if [ "$oldstat" = "" ] ; then echo "No such user: "$user exit 1 fi grep -v -w $user $UserStatus > $tmpstat date=`date +%d\.%m\.%y` echo $oldstat $status $date | awk '{printf ("%s\t%10s %10s %10s %10s\n",$1,$2,$6,$7,$5) }' >> $tmpstat sort $tmpstat > $UserStatus echo `date` $user $status >> $StatusChange