#!/bin/bash
(
echo NICK backoffice
echo USER backoffice 8 \* : Notifier
# echo 'JOIN #netops'
echo 'PRIVMSG #netops' $1
echo QUIT
) | nc 172.16.30.68 6667
/*
Welcome 59 times
:ec2.bugcy013.net 001 backoffice :Welcome to the Internet Relay Network backoffice!~backoffi@192.168.70.54
:ec2.bugcy013.net 002 backoffice :Your host is ec2.bugcy013.net, running version ngircd-14.1 (x86_64/unknown/linux-gnu)
:ec2.bugcy013.net 003 backoffice :This server has been started Sat May 11 2013 at 19:10:32 (EDT)
:ec2.bugcy013.net 004 backoffice ec2.bugcy013.net ngircd-14.1 aios biIklmnoPstv
:ec2.bugcy013.net 005 backoffice RFC2812 CASEMAPPING=ascii PREFIX=(ov)@+ CHANTYPES=#&+ CHANMODES=bI,k,l,imnPst CHANLIMIT=#&+:0 :are supported on this server
:ec2.bugcy013.net 005 backoffice CHANNELLEN=50 NICKLEN=25 TOPICLEN=490 AWAYLEN=127 KICKLEN=400 PENALTY :are supported on this server
:ec2.bugcy013.net 251 backoffice :There are 25 users and 0 services on 1 servers
:ec2.bugcy013.net 254 backoffice 32 :channels formed
:ec2.bugcy013.net 255 backoffice :I have 25 users, 0 services and 0 servers
:ec2.bugcy013.net 265 backoffice 25 42 :Current local users: 25, Max: 42
:ec2.bugcy013.net 266 backoffice 25 42 :Current global users: 25, Max: 42
:ec2.bugcy013.net 422 backoffice :MOTD file is missing
:ec2.bugcy013.net NOTICE backoffice :Connection statistics: client 0.1 kb, server 1.1 kb.
ERROR :Closing connection.
*/