goglfr.blogg.se

Bash script send growl notification
Bash script send growl notification




bash script send growl notification
  1. #BASH SCRIPT SEND GROWL NOTIFICATION SOFTWARE#
  2. #BASH SCRIPT SEND GROWL NOTIFICATION CODE#
  3. #BASH SCRIPT SEND GROWL NOTIFICATION DOWNLOAD#

#Now, this stopWaitingEvent thing - it really does make the whole thing work. Imap = imaplib2.IMAP4_SSL("") # can be changed to another server if needed Main thread (if that's what you call it?) to be used for other stuff - waiting for UI, for example. Letting a thread wait for the server to send something allows the As before, make sure you have IMAP enabled.ĭEBUG = False # debugMsg() prints the parameter passed if DEBUG is True # Obviously if you know what you're doing, or just want to fiddle, go ahead.

bash script send growl notification

ServerTimeout = 29 # Mins (leave if you're not sure) #sys.argvs with the desired username and/or password. #Three basic settings for you to change - if you don't want command line input, replace the My Changes, added a unread messages check at inialization, then when updated (push arrives) recheck total unread messages.įOR THIS TO WORK YOU MUST ENABLE IMAP ACCOUNT IN YOUR GMAIL ACCOUNT!! Jeff's modification removed the idea of sending Growl notifications, instead it simply prints the number of new messages to a file. Which was modified by Jeff Biggs, and then modified by me.

#BASH SCRIPT SEND GROWL NOTIFICATION SOFTWARE#

WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISINGįROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE ORĬhris and his wonderful post at. HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,ĮXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES Included in all copies or substantial portions of the Software. The above copyright notice and this permission notice shall be Software is furnished to do so, subject to the following Restriction, including without limitation the rights to use,Ĭopy, modify, merge, publish, distribute, sublicense, and/or sellĬopies of the Software, and to permit persons to whom the Obtaining a copy of this software and associated documentationįiles (the "Software"), to deal in the Software without Photo of Aral courtesy of Christina von Poser.Permission is hereby granted, free of charge, to any person

#BASH SCRIPT SEND GROWL NOTIFICATION CODE#

Unless otherwise stated, all content on this blog is under a Creative Commons Attribution-ShareAlike 4.0 International License and all code snippets are MIT licensed. Hand-rolled in Malmö using responsive pixels and love. Email (for time-senstive inquiries, please also CC Public key (94E9AA31)ĭrop me a line for public speaking or media inquiries.Ĭopyright © 2001– Aral Balkan.He’s ⅓ of Ind.ie, a tiny social enterprise working for social justice in the digital age. If then echo "Key is valid." else echo "Key is _not_ valid!!!" fiĪral Balkan is an activist, designer, and developer. Save the following script as sha1 and set it as executable to use it ( chmod +x sha1) I'm not sure if there's existing functionality that does this for you but it was simple enough to write.

bash script send growl notification

I was downloading the latest Google App Engine SDK release (version 1.0.2, which was released two days ago apparently) when I decided to whip up a very simple Bash script that verifies SHA1 checksums for you. However, both those methods require you to manually verify that the signatures match.

#BASH SCRIPT SEND GROWL NOTIFICATION DOWNLOAD#

It's very easy to test the download to make sure that the checksum is valid. If you download development tools you will probably have come across SHA1 or MD5 signatures for downloads in the past.






Bash script send growl notification