Skip to content

Instantly share code, notes, and snippets.

@craigw
Created February 10, 2010 14:38
Show Gist options
  • Select an option

  • Save craigw/300364 to your computer and use it in GitHub Desktop.

Select an option

Save craigw/300364 to your computer and use it in GitHub Desktop.
# cat /usr/local/sbin/irccat
#! /usr/bin/env ruby
require 'socket'
message = "#xeriom #{STDIN.read}"
socket = TCPSocket.new('monitor.xeriom.net', 12345)
socket.send(message, 0)
socket.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment