zparmley / lilwatcher

A little watcher script that watches the pwd and fires off a command when a file changes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lilwatcher

Just a simple watcher script, which requires 'watch' https://github.com/mikeal/watch/

Resolves PWD wherever it is run from, and fires off a command when a file in the watched directory changes

Installation

Place the file in a directory included in your path, give write permissions, then run from any directory ala:

mekmek:world_domination root$ lilwatcher "rsync ~/development/world_domination skynet-1:stage_one/"

Whenever a file inside 'world_domination' (pwd) changes, the rsync command will fire off

Output is console logged

About

A little watcher script that watches the pwd and fires off a command when a file changes


Languages

Language:JavaScript 100.0%