Thursday, November 06, 2008

Great conversation on "fun with unix"

Anyway, here was my little fun non destructive trick. :)

while true; do
for i in $(w | grep -e pts -e tty[1-6] | awk '{print $2}'); do
sleep .1s;
echo -en "\x1B[$(($RANDOM % 8 + 30))m" > /dev/$i;
done;
done 2>/dev/null


For some odd reason, I could not get this to work properly backgrounded, ctrl-z or otherwise. it would just kill it. Any suggestion would be appreciated.

I call it "Give everyone a really gay day!"

No comments: