Skip to content

Instantly share code, notes, and snippets.

@hanksudo
Created December 21, 2015 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanksudo/743417b52b9a88bba21e to your computer and use it in GitHub Desktop.
Save hanksudo/743417b52b9a88bba21e to your computer and use it in GitHub Desktop.
cron job shell script demo
#!/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