Lock your terminal for lunch

G. Bogatko cim1 at pyuxv.UUCP
Sat Sep 7 05:05:45 AEST 1985


# Munch, Munch 

#This is a great way to lock up your terminal without having to log off.

trap 'echo "PISS OFF"' 1 2 3 6 15
clear
echo "

I won't work now.  My massa has gon 'way.  Don't even try.

"
stty -echo
while true
do
	read ans
	case $ans in

# rewrite this line -- replace 'password' with YOUR password

	password)	clear

			stty echo
			exit ;;
	*)		echo "PISS OFF";;
	esac
done

#from Rob Fair and George Bogatko



More information about the Comp.sources.unix mailing list