multiple @daily tasks give error

14 views
Skip to first unread message

joost baaij (space babies)

unread,
Jul 23, 2009, 6:57:47 AM7/23/09
to Whenever Gem
Having more than one command in a :daily block gives an invalid
crontab file.

# schedule.rb
every :day do
runner "Someclass.import"
runner "Otherclass.import"
end

# output crontab
PATH=/usr/local/mysql/bin:/usr/local/pgsql/bin:/usr/bin:/bin:/usr/
sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin/

@daily /Users/joost/Rails/myapp/script/runner -e production
"Someclass.import"

,"Otherclass.import"

# error returned
"/var/folders/n8/n8Wa+OXEE+SmtC4CbcmNhE+++TI/-Tmp-/whenever_tmp_cron.
27075.0":7: bad minute
crontab: errors in crontab file, can't install

joost baaij (space babies)

unread,
Jul 23, 2009, 6:59:37 AM7/23/09
to Whenever Gem
Having just one command inside the block gives no error.

Also, it doesn't happen with "every 5.minutes" blocks, those appear in
the crontab fine (as separate entries).

On 23 jul, 12:57, "joost baaij (space babies)" <jo...@spacebabies.nl>
wrote:

Javan Makhmali

unread,
Jul 23, 2009, 9:42:27 AM7/23/09
to whenev...@googlegroups.com
Thanks for the report. I think I know the problem. And in the meantime
you can just use "every 1.day" instead.

Javan
Reply all
Reply to author
Forward
0 new messages