Skip to content

Instantly share code, notes, and snippets.

@clehner
Created September 28, 2012 04:27
Show Gist options
  • Save clehner/3797914 to your computer and use it in GitHub Desktop.
Save clehner/3797914 to your computer and use it in GitHub Desktop.
Growl notifications for remote Irssi
#!/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