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 4001410
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:54:05+00:00 2026-05-20T07:54:05+00:00

I have set up a cron job, using the great whenever gem. every 1.minute

  • 0

I have set up a cron job, using the great whenever gem.

every 1.minute do
  runner "PeerReview.start_feedbacks"
end

I set up the cron job with:

whenever --set environment=development --update-crontab

The crontab file looks fine, it shows:

* * * * * /bin/bash -l -c 'cd /path_to_app/ && script/rails runner -e development '\''PeerReview.start_feedbacks'\'' >> log/cron_log.log 2>&1'

If I execute the runner, it works fine, however, the cron job doesn^t seem to work (also I don’t see a log being created).

What am I missing?

(I’m working on Mac OS X, 10.6.6)

update

I think I identified the problem: The path name contains spaces, and this wasn’t handled correctly by the whenever gem, the crontab was filled incorrectly (the needed backslashes are missing), so the cronjobs are executed, but the path for the command is wrong.

  • 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-20T07:54:06+00:00Added an answer on May 20, 2026 at 7:54 am

    All above was correctly done.

    The rails app was in a directory with spaces in the path names, those spaces were not escaped by the whenever gem, when setting up the crontab.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a CRON job php script that I just set up not too
I have set up a cron job in plesk to run a cleanup script
I have a cron job setup to look every 24 hours for a change
I have Linux, PHP installed. I want to set the cron job which will
I have an application that uses a cron like job to update a set
I have a php script and using Cpanel interface Im creating a cron job
I have a cron job that I want to execute every 5 minutes: 0,5,10,15,20,25,30,35,40,45,50,55
I want to set a cron job that will execute every 15 minutes. Before
I have one job in schedule.rb : set :output, File.expand_path('../log/whenever.log', __FILE__) set :job_template, bash
I have a cron job that runs every hour. It accesses an xml feed.

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.