#!/bin/bash #****************************************** # This script is writen by linxs # Be careful want u want to execute it!!!! #********************************************
while [ : ] ; do timenow=$( date | awk ' { print }'|awk -F: '{printf "%s:%s", , }') oldbash=$(echo $newbash) newbash=$( ps -a | awk ' =="bash" { print }' ) set $newbash # echo "********************************************" # echo "the who on line now is: $*" # echo # echo "the old who on line is: $oldwhonline" # echo $timenow
if [ "$newlog" = 0 ]; then #: echo "time is : , name is , tty is " # $( kill -9 ) #********************************************************** # if u want to make it useful, enable the line above me #********************************************************** echo " will be kick out" fi shift done # sleep 3 done exit 1