Inotify is pretty nifty. There's a cross platform Python library called Watchdog which can be used to write python programs which monitor files and directories and on Linux it uses inotify. With Watchdog and tmux I've set up a handy environment to do the Python Koans in. Half the window for vim, and the other half split between a quarter window to show the test results in and a quarter window mainly used for git.
When tmux opens the shell windows it also starts a watchdog script which autoruns the tests whenever any of the files in the directory is modified.
---- Nathan England <
nathan@nmecs.com> wrote:
> I just ran across an awesome package in Fedora 21 called inotify-tools
> which has a utility called inotifywait. You can create a small script
> that will watch a directory or file for inotify events (any or you can
> select specific ones) and then execute a script. I develop locally on my
> HP Zbook but Filezilla is borked on Fedora 21, so I have an rsync script
> that will update the changes from my local box to my development web
> server. I added the inotifywait script to watch for local changes and
> then it calls my rsync script and I can hit save on a file and then
> refresh on a webpage and it's there. I don't have to mess with uploads
> or anything. It's awesome!
>
> Just thought I'd share some linux coolness!
>
> --
> Regards,
> Nathan England
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> NME Consulting Services http://www.nmecs.com
> Nathan England ( nathan@nmecs.com )
> Systems Administration / Web Application Development
> Information Security Consulting
> (480) 559.9681
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss