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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:08:38+00:00 2026-05-27T15:08:38+00:00

I want to run a Ruby script in Geektool that refreshes every 3 hours

  • 0

I want to run a Ruby script in Geektool that refreshes every 3 hours (so I set the refresh rate to 10,800 seconds) and the shell command in Geektool has this code in it:

ruby "/file.rb"

The file is located at root for convenience. Problem is, it won’t run. I tried different commands, such as:

/Users/userhere/.rvm/rubies/ruby-1.9.3-p0/bin/ruby /file.rb

But it still doesn’t work. I don’t want it to use my /usr/bin/ruby installation (which, by default, is 1.8.7), I want it to use 1.9.3. So doing: /usr/bin/ruby "/file.rb" won’t work for me.

In Terminal, if I run any of those commands they all work (except for the latter, because of dependencies) and my script works fine, but Geektool fails to even execute it. I tried with and without double quotes around the file name, even single quotes don’t work.

Any help would be greatly appreciated.

  • 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-27T15:08:39+00:00Added an answer on May 27, 2026 at 3:08 pm

    I needed an rvm gemset as well; I created a shell file:

    /Users/Dave/.rvm/bin/rvm use 1.9.3-p0 > /dev/null
    /Users/Dave/.rvm/rubies/ruby-1.9.3-p0/bin/ruby ~/foo.rb
    

    With that shell file (which happens to reside in a directory off my ~) as the shell command it works fine.

    Without the full paths to each command it doesn’t work. GeekTool doesn’t run your .bash_profile AFAICT. Also not sure that running an rvm Ruby w/o using it would do what you want anyway.

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

Sidebar

Related Questions

I want create a ruby script that I can run on the command line
I wrote a Ruby script that I want to run in the background repeatedly
I want to run a thread-safe piece of script in Ruby that calls an
I have a Ruby 1.9 script that I want to run as a long-running
I want to run my ruby script x times a day (the number might
I want to run a standalone ruby script in which I need my RoR
I want to run javascript/Python/Ruby inside my application. I have an application that creates
I have a Ruby script called foo.rb, and I want to run it within
I want my Ruby Script File to run as executable from any directory of
I have a problem. I want to run a ruby script from another ruby

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.