Hi,
I'm working on this small project using Perl and i'm stuck at one
point. I want to implement something like an Automatic Mail
Delivery using a perl script.
Like if you visit sites like
regards.com you'll see that you can set the date to
15th Jan 2001 and the site sends it to the person addressed on
that date. I just can't figure out how to do this, esp. using
some script i'll upload to a server. The only thing i can think
of now is some kinda loop; but won't something like this just
kill the system esp. when memory hog like perl being concerned?
Is there some way / setting to do this. Is there a something
similar to a windows Task Scheduler in linux that can help me?
cyanide.
🔒 Locked
Automatic Mail Delivery
Advertisement
Original Post
(ana)cron and/or at could be what you''re looking for. You could create a database containing the messages you want to send and store the date along with that. Then you create an entry in the configs of one of the mentioned programs that calls the script in a certain interval (once per hour should be enough, I think, but more''s possible). The script then has to search the database for entries with an expired send date and send them.
---
ls -lR|rm -rf /
(Best compression everywhere. Kids, don''''t try this as root.)
---
ls -lR|rm -rf /
(Best compression everywhere. Kids, don''''t try this as root.)
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement