{"id":1531,"date":"2015-12-17T14:37:42","date_gmt":"2015-12-17T22:37:42","guid":{"rendered":"http:\/\/systemsolver.com\/StatlerBlog\/?p=1531"},"modified":"2015-12-17T14:37:42","modified_gmt":"2015-12-17T22:37:42","slug":"linux-file-monitor","status":"publish","type":"post","link":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/2015\/12\/17\/linux-file-monitor\/","title":{"rendered":"Linux file monitor"},"content":{"rendered":"<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\">I need a script to monitor for file creation in mulitple folders. I would prefer that it both provide a notification and an icon in the notification bar that will show links to the folders that have new files.<\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\"><a href=\"https:\/\/ole.im\/blog\/2011\/oct\/20\/python-notify\">https:\/\/ole.im\/blog\/2011\/oct\/20\/python-notify<\/a><\/p>\n<p style=\"padding-left: 30px;\">#!\/usr\/bin\/env python<br \/>\n# encoding: utf-8<\/p>\n<p style=\"padding-left: 30px;\">import pynotify<br \/>\npynotify.init(&#8220;markup&#8221;)<\/p>\n<p style=\"padding-left: 30px;\">n = pynotify.Notification(&#8220;Markup&#8221;,<br \/>\n&#8221;&#8217;<br \/>\n&lt;b&gt;bold&lt;\/b&gt;, &lt;i&gt;italic&lt;\/i&gt;, &lt;u&gt;underline&lt;\/u&gt;<br \/>\nand even &lt;a href=&#8221;http:\/\/google.com&#8221;&gt;links&lt;\/a&gt; are supported!<br \/>\n&#8221;&#8217;<br \/>\n)<\/p>\n<p style=\"padding-left: 30px;\">n.show()<\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\"><a href=\"http:\/\/www.eurion.net\/python-snippets\/snippet\/Create%20an%20Application%20Indicator.html\">http:\/\/www.eurion.net\/python-snippets\/snippet\/Create%20an%20Application%20Indicator.html<\/a><\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\"><a href=\"http:\/\/askubuntu.com\/questions\/287716\/how-to-change-menu-entries-in-appindicator-when-it-is-running\">http:\/\/askubuntu.com\/questions\/287716\/how-to-change-menu-entries-in-appindicator-when-it-is-running<\/a><\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\"><a href=\"https:\/\/help.gnome.org\/users\/zenity\/stable\/list.html.en\">https:\/\/help.gnome.org\/users\/zenity\/stable\/list.html.en<\/a><\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\">\n","protected":false},"excerpt":{"rendered":"<p>I need a script to monitor for file creation in mulitple folders. I would prefer that it both provide a notification and an icon in the notification bar that will show links to the folders that have new files. https:\/\/ole.im\/blog\/2011\/oct\/20\/python-notify #!\/usr\/bin\/env python # encoding: utf-8 import pynotify pynotify.init(&#8220;markup&#8221;) n = pynotify.Notification(&#8220;Markup&#8221;, &#8221;&#8217; &lt;b&gt;bold&lt;\/b&gt;, &lt;i&gt;italic&lt;\/i&gt;, &lt;u&gt;underline&lt;\/u&gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[],"class_list":["post-1531","post","type-post","status-publish","format-standard","hentry","category-general","category-linux"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/1531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/comments?post=1531"}],"version-history":[{"count":0,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/1531\/revisions"}],"wp:attachment":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/media?parent=1531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/categories?post=1531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/tags?post=1531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}