Skip to content

Instantly share code, notes, and snippets.

@Kalyse
Created August 28, 2012 11:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kalyse/3497308 to your computer and use it in GitHub Desktop.
Save Kalyse/3497308 to your computer and use it in GitHub Desktop.
Fab Start Stop of inotifywait script watching for LESS CSS Files
def startcss():
with lcd(r"%s/bin" % local_dir):
local("nohup ./checkCss.sh &> /dev/null < /dev/null &")
def stopcss():
local("ps -ef | grep \"checkCss\" | grep -v \"grep\" | awk '{print $2}' | xargs kill -9")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment