Skip to content

Instantly share code, notes, and snippets.

@jgoulah
Created June 18, 2010 00:45
Show Gist options
  • Select an option

  • Save jgoulah/443038 to your computer and use it in GitHub Desktop.

Select an option

Save jgoulah/443038 to your computer and use it in GitHub Desktop.
#!/bin/sh
# kill existing fnotify processes
ps -ef | grep [f]notify | awk {'print $2'} | xargs -I{} kill {}
# ssh to host, clear file and listen for notifications
(
ssh YOUR_REMOTE_HOST "> .irssi/fnotify; tail -f .irssi/fnotify" |
while read title message; do
growlnotify -t "${title}" -m "${message}";
done
)&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment