Cron Job through Perl

B

Bob Anastasia

Hello,
I am looking to try to add, edit, and view cron jobs through a perl
script. does anyone have a way to do so. I looked at Schedule::Cron but
it seems like it is more for setting up crons in specific sub routines
in itself instead of setting up actual cron jobs. (unless i
misunderstood it) in which case if anyone had previous experience in
Schedule::Cron then could they give me an example of how to
add/edit/view through that script.


thank you
 
T

Ted Zlatanov

I am looking to try to add, edit, and view cron jobs through a perl
script. does anyone have a way to do so. I looked at Schedule::Cron but
it seems like it is more for setting up crons in specific sub routines
in itself instead of setting up actual cron jobs. (unless i
misunderstood it) in which case if anyone had previous experience in
Schedule::Cron then could they give me an example of how to
add/edit/view through that script.

I don't know Schedule::Cron myself, but take a look at cfperl
http://lifelogs.com/cfperl/ - it implements a Parse::RecDescent parser
to intrepret words such as "monthly" as cron entries. Here's an
example:

weekly on Monday,Tuesday at 2; on Tuesday,Friday at 8,3; on Thursday at 20,22 do as cftest /usr/bin/checkquotas

Hope this helps
Ted
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top