This is a helpful little script I found on the net and modified to work around an issue with fast CPUs and slow IRC servers. If you find yourself needing to send messages from a shell script to an IRC server but keep coming against the “451 PRIVMSG: You have not registered” error, inserting a sleep between the USER and PRIVMSG commands does the trick.
#!/bin/bash -x ( echo NICK backoffice echo USER backoffice 8 \* : Notifier sleep 1 # echo 'JOIN #netops' echo 'PRIVMSG #netops' $1 echo QUIT ) | nc 127.0.0.1 6667
If you’ve been following my series of blog posts on my NAS rebuild, you probably came to this post expecting the final part of the series, where you’d find instructions on how to setup the applications and services that I rely on for my media management, such as: SABnzbd+, Sick-Beard, CouchPotato, AFP/Netatalk, Samba and some extras.
I’m afraid to say, however, that I have some bad news.