On Sat, 2004-01-17 at 11:15, Bob Proulx wrote: > If this script becomes popular then there will be an impulse spike on > the servers at that time (within each timezone) every day. This has > been known to create problems in other similar cases. Better to > randomize a delay to make sure that these do not all go off at once. >
> MAXDELAY=3600 > if [ ! -t 0 -a $MAXDELAY -gt 0 ] ; then > sleep $(($RANDOM % $MAXDELAY)) > fi Quite right, great idea! I've added your delay idea to the script when not running interactively. By the way, if you know how to convert all my bash-isms to POSIX, by all means share the knowledge :). Thanks. -- Chris Thielen Easily generate SpamAssassin rules to catch obfuscated spam phrases: http://www.sandgnat.com/cmos/ ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk