-
-
Save luozengbin/1749657 to your computer and use it in GitHub Desktop.
notify-send for windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
VALUE_ICON=`cygpath -d "$HOME/pict/terminal.png"` | |
VALUE_TITLE="terminal" | |
VALUE_MESSAGE="Ha!!" | |
while getopts hi:t:m: OPT | |
do | |
case $OPT in | |
"i" ) FLG_ICON="TRUE" ; VALUE_ICON="$OPTARG" ;; | |
"t" ) FLG_TITLE="TRUE" ; VALUE_TITLE="$OPTARG" ;; | |
"m" ) FLG_MESSAGE="TRUE" ; VALUE_MESSAGE="$OPTARG" ;; | |
"h" ) echo "Usage: notify-send [options of 'growl for windows' ...] message" ; exit 0 ;; | |
esac | |
done | |
/cygdrive/c/Program\ Files\ \(x86\)/Growl\ for\ Windows/growlnotify.com /i:"$VALUE_ICON" /t:"$VALUE_TITLE" "$VALUE_MESSAGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PATH=$PATH:/usr/local/bin:/bin:/usr/bin:/usr/sbin:"$HOME/bin" | |
NOW=`date +"%Y-%m-%d\n%H:%M:%S"` | |
TITLE="growl from cron" | |
notify-send -t"$TITLE" -m"$NOW" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment