Revision: 866
http://assorted.svn.sourceforge.net/assorted/?rev=866&view=rev
Author: yangzhang
Date: 2008-07-02 22:38:30 -0700 (Wed, 02 Jul 2008)
Log Message:
-----------
recovered some ancient udpates that were sitting on old windows box
Modified Paths:
--------------
shell-tools/trunk/src/email-alert.bash
Modified: shell-tools/trunk/src/email-alert.bash
===================================================================
--- shell-tools/trunk/src/email-alert.bash 2008-07-02 19:50:18 UTC (rev 865)
+++ shell-tools/trunk/src/email-alert.bash 2008-07-03 05:38:30 UTC (rev 866)
@@ -15,6 +15,20 @@
-h display this help message
"
+while true ; do
+ echo -n start:\
+ date
+ count="$( grep "$@" "$(cygpath "$APPDATA")/Thunderbird/Profiles/default."*"/ImapMail/imap.csail.mit.edu/INBOX" | wc -l )"
+ if (( count > 2 )) ; then
+ "$(cygpath "$SYSTEMDRIVE")/Program Files/Windows Media Player/mplayer2.exe" "$sound"
+ fi
+ echo -n end:\
+ date
+ sleep $(( 10*60 ))
+done
+exit
+
+
while getopts 'hi:s:' opt ; do
case "$opt" in
h ) echo "$usage" ; exit ;;
@@ -28,7 +42,7 @@
do_alert=
date
while read pattern ; do
- if grep -qi "$pattern" "$(cygpath "$APPDATA")/Thunderbird/Profiles/default."*"/Mail/localhost/Inbox"
+ if ; then
echo " alert! $pattern"
do_alert=1
fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|