All pastes #977994 Raw Edit

vote-for-brooke.sh

public shellscript v1 · immutable
#977994 ·published 2008-04-09 06:31 UTC
rendered paste body
#! /bin/sh# Copyright 2008 Christopher Williams (abbrev@gmail.com)# Use this script however you please. I'd like to hear from you if you actually use it# to vote for Brooke (and maybe even if you use it for some other purposes).cleanup(){	echo cleaning up...	sleep 1	echo ATH | unix2dos >/dev/modem	exit}num="$1"if [ -z "$num" ]; then	echo "Usage: $0 number"	echo "  where number is Brooke White's two-digit contestant number on American Idol"	exitfitrap "trap '' 2 3 15; cleanup" 2 3 15{	echo ATZ	while :; do		echo ATDT186643657$num		echo		usleep `rand 10000000 11000000` # [10,11) seconds		echo		echo ATH		usleep `rand 0 1000000` # [0,1) seconds	done} | unix2dos >/dev/modem