Seconds and Destroy?

168 views
Skip to first unread message

viatropos

unread,
Oct 5, 2009, 5:48:11 AM10/5/09
to Whenever Gem
Newbee questions :)

How do I specify the crontask to be run every second (min/hr/day/mo
are documented)?

How do I destroy the crontask?

Thank you!

Javan Makhmali

unread,
Oct 5, 2009, 9:34:30 AM10/5/09
to whenev...@googlegroups.com
Cron's smallest interval is minutes so it's not possible to do every
second. To stop a cron job you need to edit your crontab file and
remove that entry (or remove it from your schedule.rb file and and run
`whenever' again).

Perhaps you should look at creating deamon instead -- http://daemons.rubyforge.org/

Javan

viatropos

unread,
Oct 5, 2009, 2:36:20 PM10/5/09
to Whenever Gem
Thank you, that was helpful. It's working now.

On Oct 5, 6:34 am, Javan Makhmali <ja...@javan.us> wrote:
> Cron's smallest interval is minutes so it's not possible to do every  
> second. To stop a cron job you need to edit your crontab file and  
> remove that entry (or remove it from your schedule.rb file and and run  
> `whenever' again).
>
> Perhaps you should look at creating deamon instead --http://daemons.rubyforge.org/

Peer Allan

unread,
Oct 5, 2009, 7:59:18 PM10/5/09
to whenev...@googlegroups.com
The minimum setting for cron is 1 minute. If you need something more
granular than that then you will have to find a different scheduling
solution.

Peer
Reply all
Reply to author
Forward
0 new messages