Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
Automatically running a command whenever a file is saved
(opens in new tab)
(lenni.info)
7 points
lenni
15y ago
4 comments
Save
Share
4 comments
4 comments · 3 top-level
top
newest
oldest
shabble
15y ago
· 1 in thread
I quite like
http://search.cpan.org/~drolsky/File-ChangeNotify-0.17/lib/F...
for perl. It's cross-platform (backends for linux, OSX/BSD and Win32 afaik), and is very straightforward to use.
lenni
OP
15y ago
Oh great, I looked around but haven't found anything like it.
mthomas
15y ago
I notice that you're using a polling thread keep track of modification times. I know that linux has inotify:
http://github.com/seb-m/pyinotify
and OsX has something similar with FSEvents:
http://pypi.python.org/pypi/MacFSEvents
zacharydanger
15y ago
Sounds like incron. Which is just a cron-like interface for inotify.
j
/
k
navigate · click thread line to collapse