{"id":8563,"date":"2020-01-04T11:39:33","date_gmt":"2020-01-04T16:39:33","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=8563"},"modified":"2020-01-04T11:39:33","modified_gmt":"2020-01-04T16:39:33","slug":"adding-system-notifications-to-your-org-agenda","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=8563","title":{"rendered":"Adding System Notifications to Your Org Agenda"},"content":{"rendered":"<p>If you\u2019re a Unix\/Linux\/MacOS user, chances are you have one or more cron jobs set up to handle routine maintenance chores. Cron jobs are an extraordinarily useful tool to make a lot of busy work disappear. Still, sometimes things go wrong and you\u2019d like to know about it. That\u2019s easy to do too. You can simply have your script output a notification of any anomalous conditions and cron will mail the notification to you.<\/p>\n<p>The problem is that cron mails the notifications to your local machine mail account, which virtually nobody checks. You can, as <a href=\"https:\/\/karl-voit.at\">Karl Voit<\/a> used to do, set yourself a reminder to check it once a week or month or whatever time frame makes sense for you but that just leads to more busy work and problems may sit unnoticed between your scheduled checks.<\/p>\n<p>Voit finally got tired of checking the machine mail account on each of his machines and set up a general mechanism to <a href=\"https:\/\/karl-voit.at\/2020\/01\/01\/appendorgheading\/\">add cron job exception reports to his Org mode agenda<\/a>. That turned out to be pretty easy to do. Voit doesn\u2019t like programming in Elisp so he wrote some python scripts to append Org entries to his <code>errors.org<\/code> file. The cron job scripts call the python script to add errors and appropriate information to <code>error.org<\/code> which then gets displayed in his agenda. Follow the link to Voit\u2019s post for the details including a few of the actual scripts he uses. It\u2019s a very nice system and removes the need to periodically check for problems.<\/p>\n<p>Of course, if you like Elisp, it would be easy to replace the Python with some Elisp, perhaps calling it from a script as <a href=\"https:\/\/beepb00p.xyz\/pkm-search.html#appendix_daemon\">Karlicoss showed us<\/a>. In either case, take a look at Voit\u2019s post. It\u2019s full of good ideas for handling the routine but boring details of administering your own machine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you\u2019re a Unix\/Linux\/MacOS user, chances are you have one or more cron jobs set up to handle routine maintenance chores. Cron jobs are an extraordinarily useful tool to make a lot of busy work disappear. Still, sometimes things go &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=8563\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18,4],"class_list":["post-8563","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs","tag-org-mode"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8563"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8563\/revisions"}],"predecessor-version":[{"id":8564,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8563\/revisions\/8564"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}