Skip to content

Instantly share code, notes, and snippets.

@bloopletech
Created December 11, 2010 00:13
Show Gist options
  • Save bloopletech/737017 to your computer and use it in GitHub Desktop.
Save bloopletech/737017 to your computer and use it in GitHub Desktop.
SHELL=/bin/bash
# m h dom mon dow command
0 0 * * * /.../run_in_current rake db:backup
#!/bin/bash
#This script is meant to be run from bash shells that have had their environment stripped - it sets up the environment again so we can do useful work
export HOME=/home/bloople/
source /home/bloople/.bashrc
rvm use 1.9.2
cd /www/ca/current
$@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment