Created
September 28, 2012 04:27
-
-
Save clehner/3797914 to your computer and use it in GitHub Desktop.
Growl notifications for remote Irssi
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 | |
server='127.0.0.1' | |
log='irclogs/*/*.log' | |
ssh "$server" "tail -n1 -f $log" | sed -l 's/^[^ ]* < //' | while read line; do | |
sender="${line%>*}" | |
msg="${line#*> }" | |
growlnotify -m "$msg" "$sender" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment