diff --git a/bin/ircnotify.sh b/bin/ircnotify.sh index 2d1908e..d7fe78f 100755 --- a/bin/ircnotify.sh +++ b/bin/ircnotify.sh @@ -10,6 +10,9 @@ notify() fi } +# Avoid spawning script twice. +ps aux | grep ircnotify.sh | grep -v grep | grep -v $$ && exit + (ssh irc.walkah.net -o PermitLocalCommand=no \ ": > .irssi/fnotify ; tail -f .irssi/fnotify " | \ while read heading message; do \