in reply to Re(4): Spam revenge
in thread Spam revenge
I'm not against using Perl to drive external programs. I just brought it up in this case since this a task that's rather easily done in bash. Not knowing the syntax is an argument I guess - although apart from a number of quirks regarding interpolation, it's pretty simple. Firing commands to an SQL server through its tool on the other hand - and especially processing the output, if you did so - is probably not something one can easily to with the shell. As such, it's really about choosing the right tool for the right job. In your case, Perl was probably it, in this case bash would be the ticket.
Just to illustrate the point, although I really didn't want to do so with this piece of code..
#!/bin/bash end_it_all () { echo echo "did some funny things some $COUNT times... naughty, naughty" exit } trap end_it_all HUP QUIT INT TERM COUNT=0 HOST=localhost while ((1)) ; do wget -r -l100 -U "Stop sending me SPAM! This is the only way to ma +ke you undestand." "http://$HOST" && end_it_all ((COUNT++)) done
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re(6): Spam revenge
by Dog and Pony (Priest) on Sep 04, 2002 at 06:26 UTC | |
by Aristotle (Chancellor) on Sep 04, 2002 at 14:13 UTC |