python - Perform additional actions upon read or write to filesystem -



python - Perform additional actions upon read or write to filesystem -

how can perform additional shell actions when file read or written linux mounted filesystem (local or otherwise)?

i'm looking to:

make database or rpc calls (via bash,perl,python, etc) when specific file extensions written (known application specific extensions) identify process read or wrote file (and identify dependencies file if possible)

i seem remember beingness possible ld_ variant (preload etc.) unsure on specifics.

pyinotify need: http://pyinotify.sourceforge.net/

i've used in past hacky way trigger emails whenever file downloaded or uploaded via sftp monitoring sftp log file , parsing log messages.

python linux perl linux-kernel filesystems

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -