#! /bin/bash # Created by Daniel Sellers uid=`echo $UID` if [ "$uid" = "0" ] then echo " restarting database NOW" cd /usr/lib/yp ./ypinit -m else echo " You are not ROOT try again when you are" dte=`date` usr=`echo $USER` echo "$dte $usr $uid" > temp.ID cat flog.ID > log.ID.tmp cat temp.ID log.ID.tmp > flog.ID rm temp.ID log.ID.tmp fi