Skip to content

Instantly share code, notes, and snippets.

@TGOlson
Created January 28, 2014 06:21
Show Gist options
  • Save TGOlson/8663068 to your computer and use it in GitHub Desktop.
Save TGOlson/8663068 to your computer and use it in GitHub Desktop.
My first shell script -- isn't it cute...
echo '********************************************'
date -u
echo ' Beginning Incremental Import'
echo ' Setting PATH, GEM and RUBYLIB variables'
export PATH=/home/ckoziak/webapps/rails/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/ckoziak/bin;
export GEM_HOME=/home/ckoziak/webapps/rails/gems;
export RUBYLIB=/home/ckoziak/webapps/rails/lib;
echo ' Changing Directory to /home/ckoziak/webapps/rails/fas/'
cd /home/ckoziak/webapps/rails/fas/;
echo ' Running rake epf:incremental'
rake epf:incremental;
echo ' Finished incremental import'
echo ' Check /home/ckoziak/webapps/rails/fas/log/EPFLogs/EPFLog.log for import data.'
date -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment