#!/bin/sh
# This line continues for Tcl, but is a single line for 'sh' \
exec tclsh "$0" ${1+"$@"}
set s [socket irc.server.com 6667]
puts $s "nick foo\nuser bar x x moo"
puts $s "privmsg [lindex $argv 0] :[join [lrange $argv 1 e]]"
puts $s quit
close $s
(this might not work on servers that send ping cookie on connect and expect reply, registering client upon receiving it)
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use