PHP2 said:
is possible start some actions with Perl without Cron?
for example send email to users from database after 3 days or delete
something from database automaticaly after 3 day with Perl but without Cron?
You can "sleep" for 60 x 60 x 24 x 3 seconds. I'm not sure if that
particular integer is in the range of "sleep"; I'll leave that as an
exercise to the reader.
If that's what you mean. But you won't get the builtin advantages of
using cron like crash recovery, logging, etc.
However, on some systems the admin locks down cron with /etc/cron.deny
or allow, so occasionally you'll need to "roll your own" in those
hostile environments. I've done it, but never with such an extended
sleep time.
Personally if I was going to sleep that long, I'd be more inclined to
have a small shellscript that kicks off the Perl script every n
seconds. That way the program isn't perpetually resident (yes I'm an
old-timer!).
G