is it possible to send a PRIVMSG from the linux shell?
or maybe make a shell script that is executed with 2 parameters, (nick and message) and then sends $message to $nick via a PRIVMSG?
Code: Select all
#!/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
Code: Select all
tag when posting logs, code