Comments on: Pyinotify – Monitor Filesystem Changes in Real-Time in Linux https://www.tecmint.com/pyinotify-monitor-filesystem-directory-changes-in-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Wed, 27 Jan 2021 16:51:02 +0000 hourly 1 By: Zinx https://www.tecmint.com/pyinotify-monitor-filesystem-directory-changes-in-linux/comment-page-1/#comment-1423520 Wed, 27 Jan 2021 16:51:02 +0000 http://www.tecmint.com/?p=25067#comment-1423520 I’m not interested in just printing out when a file is added to a directory, what I’m looking for is the ability to execute specific python code when that happens. This looks like a half-baked demo, not a useful library function for implementing some action that should occur when new files land. Consequently, this seems pretty pointless.

]]>
By: Aaron Kili https://www.tecmint.com/pyinotify-monitor-filesystem-directory-changes-in-linux/comment-page-1/#comment-1069163 Tue, 27 Nov 2018 18:02:44 +0000 http://www.tecmint.com/?p=25067#comment-1069163 In reply to santosh.

@santosh

The easiest way to achieve that is to use a version control system such as Git. It helps you track changes in a file; showing you exactly who changed what file and what he/she changed in it. Git is commonly used for software projects but it can track changes in any file in a computer.

For more information, check out: https://www.tecmint.com/use-git-version-control-system-in-linux/

]]>
By: santosh https://www.tecmint.com/pyinotify-monitor-filesystem-directory-changes-in-linux/comment-page-1/#comment-1064713 Fri, 23 Nov 2018 09:55:11 +0000 http://www.tecmint.com/?p=25067#comment-1064713 Can we also check who changed file and what does he/she changed in that and send a mail to recipients? If yes please share how can we achieve that. Many Thanks!!!

]]>
By: Aaron Kili https://www.tecmint.com/pyinotify-monitor-filesystem-directory-changes-in-linux/comment-page-1/#comment-918370 Wed, 04 Oct 2017 05:06:48 +0000 http://www.tecmint.com/?p=25067#comment-918370 In reply to jorge.

@jorge

Oh, useful tip here. Many thanks for sharing this.

]]>
By: jorge https://www.tecmint.com/pyinotify-monitor-filesystem-directory-changes-in-linux/comment-page-1/#comment-916790 Sat, 30 Sep 2017 06:57:38 +0000 http://www.tecmint.com/?p=25067#comment-916790 When you run pyinotify without specifying any directory to monitor, the /tmp directory is considered by default.

]]>