mcabber-utils/start.sh

14 lines
272 B
Bash
Executable File

#!/usr/bin/env sh
DIR=$HOME/.mcabber
pidtail() {
tail -F $1 2>/dev/null &
echo $! 1>&2
}
echo -n > $DIR/notify_pids
echo -n > $DIR/last_event
(pidtail $DIR/last_event 2>> $DIR/notify_pids | python $DIR/mcabbernotify.py $DIR/notify_pids) &
echo $! >> $DIR/notify_pids