OSX Agent to handle irssi notifications on a remote server
- Go to ~/Library/LaunchAgents
- Create the file com.ntrippar.inotify.plist
- Paste the following into the file and fix the path of the inotify-agent binary:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.ntrippar.inotify</string>
<key>ProgramArguments</key>
<array>
<string>/absolute/path/to/inotify_agent</string>
</array>
<key>StandardErrorPath</key>
<string>/dev/null</string>
<key>StandardOutPath</key>
<string>/dev/null</string>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
- fix permission
chown youruser:wheel /absolute/path/to/inotify_agent
- load the agent to the user account:
launchctl load -F ~/Library/LaunchAgents/com.ntrippar.inotify.plist
- connect to your remote server doing a remote port forwarding of the port 31337
ssh -R 31337:localhost:31337 username@server
- move the file
iNotify.pl
to~/.irssi/scripts/
- load the plugin
/script load iNotify.pl