Created
December 21, 2015 09:59
-
-
Save hanksudo/743417b52b9a88bba21e to your computer and use it in GitHub Desktop.
cron job shell script demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
. /home/hanksudo/.virtualenvs/starthack/bin/activate | |
set -e | |
project_dir="$(cd "$(dirname "$0")/.."; pwd)" | |
cd "$project_dir" | |
exec starthack 1 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment