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
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