http://qs1969.pair.com?node_id=745287

palette has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
I wanted to know is there any CPAN module through which I can call other perl scripts.
Something like POE::Component::JobQueue.
I feel that POE::Component::JobQueue is particulAr to call specific modules,
Can I use this to make call to perl scripts.
  • Comment on perl script acting as scehuler for other perl scripts

Replies are listed 'Best First'.
Re: perl script acting as scehuler for other perl scripts
by puudeli (Pilgrim) on Feb 20, 2009 at 07:36 UTC

    Maybe Schedule::Cron could do the trick?

    You could use Timer, Schedule or Cron as search terms in CPAN.

    --
    seek $her, $from, $everywhere if exists $true{love};
Re: perl script acting as scehuler for other perl scripts
by rcaputo (Chaplain) on Feb 21, 2009 at 02:29 UTC

    POE::Component::JobQueue is used to execute jobs in a particular order, with a specified level of concurrency. It's not a cron-like timed scheduler, but POE::Component::Cron might fit if that's what you need.

    That said, there's no restriction on what the jobs can do. If you want, they can use POE::Wheel::Run to fork off and manage subprocesses, which may be "other perl scripts".

    And if your scheduling needs are simpler than POE::Component::JobQueue, you could just use POE itself.

    If you need more robust queuing, something like POE::Component::MessageQueue might work better.