Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Automatically running a command whenever a file is saved
(
lenni.info
)
7 points
by
lenni
on Oct 10, 2010
|
hide
|
past
|
favorite
|
4 comments
mthomas
on Oct 10, 2010
|
next
[–]
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
shabble
on Oct 11, 2010
|
prev
|
next
[–]
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
on Oct 11, 2010
|
parent
|
next
[–]
Oh great, I looked around but haven't found anything like it.
zacharydanger
on Oct 11, 2010
|
prev
[–]
Sounds like incron. Which is just a cron-like interface for inotify.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: