How to execute shell command from Rails?

You could move your script into lib and put its logic into a class with a class method... then you can just call it from your rails code: MyScriptClass.my_script.

Then, when you figure out your cron problem (see link [1] provided by Dr. Nic in a response to another post), you can still call this, or you could make a rake task to call it.

b

[1] Media Temple Community | Media Temple Community

rph wrote: