GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  POE::COMPONENT::CRON (3)

.ds Aq ’

NAME

POE::Component::Cron - Schedule POE Events using a cron spec

CONTENTS

SYNOPSIS



    use POE::Component::Cron;

    $s1 = POE::Session->create(
        inline_states => {
            _start => sub {
               $_[KERNEL]->delay( _die_, 120 );
            }

            Tick => sub {
               print tick , scalar localtime, "\n";
            },
        }
    );

    # crontab schedule the easy wa
    $sched =
      POE::Component::Cron->from_cron( * * * * * => $s2->ID => Tick );

    # delete some schedule of events
    $sched->delete();



DESCRIPTION

This component extends POE::Component::Schedule by adding an easy way t specify event schedules using a simple cron spec.

METHODS

    from_cron

Add a schedule using a simple syntax for plain old cron spec.



    POE::Component::Cron-> from_cron(*/5 */2 * * 1 => session => event);



Accepts the cron syntax as defined by DateTime::Event::Cron which is pretty the same as that used by common linux cron.

SEE ALSO

POE, POE::Component::Schedule perl, DateTime::Set, DateTime::Event::Cron.

AUTHOR

Chris Fedde, <cfedde@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2008 by Chris Fedde

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 POE::COMPONENT::CRON (3) 2009-06-27

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.