Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7580339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:53:36+00:00 2026-05-30T17:53:36+00:00

Trying to use the whenever ruby gem , however (no pun intended) errors occur

  • 0

Trying to use the whenever ruby gem, however (no pun intended) errors occur every time something is run:

1.9.3-p0 :001 > require 'whenever'
     => true 
1.9.3-p0 :002 > every 1.minutes do 
1.9.3-p0 :003 >     puts 'hi'
1.9.3-p0 :004?>   end
NoMethodError: undefined method `every' for main:Object
    from (irb):6
    from /Users/rudolph9/.rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `<main>'

I am running Mac OS 10.7.3, Ruby 1.9.3, and Whenever v0.7.3. Is this a cron job issue with OSX? What exactly the issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:53:37+00:00Added an answer on May 30, 2026 at 5:53 pm

    The whenever gem is not meant to be called directly like that. The blocks that you want to execute go into a schedule file (config/schedule.rb by default) that recognizes the DSL for cron-like tasks.

    You can preview how your commands will be converted to the crontab by running the whenever command within the directory. Then to commit the jobs to your crontab, use

    whenever --write-crontab
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use the Optiflag package in my Ruby code and whenever I
I am trying to use the whenever gem to execute a couple of rake
I've been trying to use the 'twitter_oauth' gem with my rails application but whenever
I am trying to use whenever gem in my application but I am not
I'm trying to use the ncurses-0.2 library from hackage, however whenever I'm trying to
I'm trying to use std::string instead of char* whenever possible, but I worry I
I was trying use a set of filter functions to run the appropriate routine,
I'm trying to use pyinotify to alert me whenever files are deleted, but I
I am trying to use Selenium RC but i keep getting this error whenever
I'm trying to use FancyBox for a gallery of 36 images, but whenever I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.