watch.py – run command when file changes

I decided that Ian Piumarta’s tiny watch utility looked nifty, and that it would be nice to have a cross-platform, no-compile-required version. Granted, watch.c compiles using default make rules, so “no compile” is a bit arbitrary.

Anyways, the result is watch.py.

Oddly enough, the two implementations have the exact same physical line counts!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s