Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: remove crontab entries

by Jonathan (Curate)
on Jul 23, 2004 at 15:16 UTC ( #376902=note: print w/replies, xml ) Need Help??

in reply to remove crontab entries

Sorry, but I don't really understand the problem. Schedule::At looks like (I've never used it) it is process orientated so if you wanted to call a subroutine using it you'll be better off wrapping your subroutine into a process or rolling your own simple scheduler wrapper. For anything more complicated I suggest POE

Replies are listed 'Best First'.
Re: remove crontab entries
by nmete (Novice) on Jul 26, 2004 at 20:30 UTC
    To make it more clear:

    To my understandig with Schedule:At I can only run some system commands at a particular time. or I can run some script files.
    But it does not seem sophisticated enough that I can call any function of a script (ie: perl). I need to call function because I need to pass parameters (entered by user via web interface)

    Schedule::Cron does what I actually want. and I have a running code with cron.. but I want to run my scheduled jobs only once. this is the problem with cron.
    so if I say $cron->add_entry("00 10 26 07 *") I want it to run at 10am, 26th of June 2004 but not at the same time of 2005.

    I am not sure if this is the already case.. If so, not problem anymore


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://376902]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2021-06-18 05:27 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (87 votes). Check out past polls.