Created
June 18, 2010 00:45
-
-
Save jgoulah/443038 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| # 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