in reply to St. Valentine's Day preperation script

++silent11
Very enjoyable. For a lot of people Perl is a tool to automate tedious maintenance tasks, and your script is a perfect example of this. Thank you for this useful contribution to the community!

I would write this into a cron job, but the regularity of it might raise suspicions (an email received every Tuesday and Friday at 3:14 PM... hmm...). I wonder if I could somehow randomize the time of the cron. Or maybe code a daemon in Perl that would pick a time randomly within a certain range.

OOH! And to make sure it doesn't get sent while I'm home sick or whatever, I can have it system("w | grep 'LAI'") to make sure I'm logged in! Oh, the possibilities...


LAI
:eof

Replies are listed 'Best First'.
Re: Re: St. Valentine's Day preperation script
by sauoq (Abbot) on Jan 28, 2003 at 00:01 UTC
    I wonder if I could somehow randomize the time of the cron.

    Don't bother. Just run it from cron every ten minutes or so (during likely hours of course) and send the message if rand 100 > 98 or something.

    -sauoq
    "My two cents aren't worth a dime.";