-
Notifications
You must be signed in to change notification settings - Fork 160
Help request: how to run automatically on OS X #372
Comments
As best I can figure out from here rvm supports per-folder To see what version of Ruby rvm considers to be the system Ruby, running To use the Let me know how you get on and we'll see if we can get you up and running. |
Use rvm-auto-ruby instead of ruby in the launchd plist. That will pick On 21 May 2015, at 11:29, Larry Hynes wrote:
|
Thanks, both. It turns out I can't seem to get the launchd plist right after all. This is my attempt. Can you please spot what I'm doing wrong? Thanks.
|
I had the same problem, but just simply added This is my plist.
|
I'd like slogger to run automatically once or twice a day on my MacBook running OS X.
Problem is that I currently have three versions of Ruby on my system including 1.8.7 and 2.2.1, niether of which slogger will run with. So I say "rvm use system" which switches to a different version, though I don't know how to find out which one (as "rvm current" just replies "system").
When I create this little script:
!/bin/bash
rvm use system ###
/Users/jonathan/Library/Scripts/slogger/slogger
It won't run from the shell, saying:
"RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use
/bin/bash --login
as the command."I know how to create and set launchd jobs; but I don't know how to set the ruby version for the created process if I can't include it in a script in this way. Thanks.
The text was updated successfully, but these errors were encountered: