Code: Select all
bind pub o .shutdown shutdown
bind pub o .run run
set logfile "logs/exec/beehive.log"
set log [open $logfile a]
proc shutdown { nick uhost handle chan text } {
global log logfil
# set docmd [exec ./shutbeehive]
putserv "PRIVMSG $chan :\0034Beehive is shutting down... \003"
puts $log "$nick\n[strftime "%Y %b %d %a %T"]:\n Shutdown"
}
proc run { nick uhost handle chan text } {
global log logfil
#set docmd [exec ./runbeehive]
putserv "PRIVMSG $chan :\0034Beehive is starting...please wait. \003"
puts $log "$nick\n[strftime "%Y %b %d %a %T"]:\n Start"
}
close $log
Code: Select all
Tcl error [run]: can not find channel named "file14"i dont understand what is it.
pls help me.