Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: timed email reminder

by thatguy (Parson)
on Oct 11, 2001 at 20:08 UTC ( #118251=note: print w/ replies, xml ) Need Help??


in reply to timed email reminder

warning not perl, cron:
in crontab:  0 0 0-31/6 * * echo "reminder" | mail soinso@example.com

in perl, Date::Calc really is your best bet.

Take a look around cpan for some other date modules and look at localtime..
-p


Comment on Re: timed email reminder
Download Code
Re: Re: timed email reminder
by belg4mit (Prior) on Oct 11, 2001 at 20:34 UTC
    Ha! As it happens I'm actually working on cron in Perl for PPT. I was planning on posting it to perlmonks when done to ask for comments and optimizations... A functional but not yet fully complete version is here:

    http://web.mit.edu/belg4mit/Public/cron UPDATE: it now lives at: http://pthbb.org/software/crond/

    Of particular interest are the non-standard options -f and -X

    -f allows you to specify a crontab in a non-standard location

    Stuff to do: security (setuid and setgid) checking crontab update times and reloading as necessary

    internal mailer (would be perfect for this, just set the crontab entry to cat a file...) some other odds and ends

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://118251]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2015-07-06 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls