Update ircnotify.sh
Avoid spawning ircnotify multiple times.
This commit is contained in:
parent
549c27c25f
commit
6cefafb63d
@ -10,6 +10,9 @@ notify()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Avoid spawning script twice.
|
||||||
|
ps aux | grep ircnotify.sh | grep -v grep | grep -v $$ && exit
|
||||||
|
|
||||||
(ssh irc.walkah.net -o PermitLocalCommand=no \
|
(ssh irc.walkah.net -o PermitLocalCommand=no \
|
||||||
": > .irssi/fnotify ; tail -f .irssi/fnotify " | \
|
": > .irssi/fnotify ; tail -f .irssi/fnotify " | \
|
||||||
while read heading message; do \
|
while read heading message; do \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user