LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 01-19-2006, 11:53 AM   #1
syssyphus
LQ Newbie
 
Registered: Aug 2005
Posts: 19

Rep: Reputation: 0
annoy.sh


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
 
Old 01-19-2006, 02:01 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Even though this is not damaging per se, let's keep scripts that annoy people out of the forums please.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
star downloader : does it annoy the server? yeehi Linux - General 1 01-23-2006 10:28 PM
Annoy someone on the internet = jailtime jaz General 32 01-17-2006 01:02 PM
Does default middle button action in Firefox 1.5 annoy you? KimVette Linux - Software 2 12-08-2005 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration