I'm beginning tcl scripting, so I have quite a lot of questions .. But today I have just one
I have a trigger in my script that calls a bash script
However I need 2 args for my bash script, and I just find out how to grab one, exemple here :
Code: Select all
proc pub:distance { nick uhost hand chan arg } {
if {[llength $arg]==0} {
putserv "PRIVMSG $chan :Give 2 planets !"
} else {
catch {string trim [exec /home/darky/scripts/planet $arg $arg2 ]} distance
putserv "privmsg $chan :$distance\r"
}
return 0
}
!d ARG-1 ARG-2
Thanks for your help !