Software engineer, data guy, Open Source enthusiast, New Hampshire resident, husband, father. Fan of guitars, hiking, photography, homebrewing, sarcasm.
BASH shell wrapper script to setup RVM environment and execute Ruby scripts via cron
Here’s a BASH shell wrapper script I use to execute Ruby scripts via cron. It ensures the following are setup correctly: environment variables, Ruby version, RVM gemset, and will pass command line arguments to Ruby. It assumes an .rvmrc file exists in the same directory as the script being executed.