Skip to content

Instantly share code, notes, and snippets.

@adonaldson
Created February 24, 2010 16:39
Show Gist options
  • Save adonaldson/313594 to your computer and use it in GitHub Desktop.
Save adonaldson/313594 to your computer and use it in GitHub Desktop.
0,15,30,45 * * * * /Users/andrew/bin/start_cijoe > /dev/null 2>&1
0,15,30,45 * * * * /Users/andrew/bin/start_cijoe_tunnel > /dev/null 2>&1
#!/bin/sh
app_command="cijoe /Users/andrew/dev/webapp"
lock_file="/Users/andrew/dev/webapp/.git/cijoe.lock"
if [ ! -e $lock_file ]
then
touch $lock_file
$app_command
rm -rf $lock_file
else
echo "Lock file ($lock_file) exists"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment