I´ve just started learning TCL about a week ago. Now I´m at my second script and I´m stuck. I wanted to create a script that´s pinging a server and shows the result in an irc channel. The script should run on an eggdrop.
]Kami[ wrote:Even, ifyoud efine hostname script isnt working...I puted my btos ip there and i typed .ping on chan and bot returned PING and nofthing more..
how should it...
a) the ping command works different on unix and windows, if you use this exec on unix you bot will freeze (because ping <host> wont quick after 4 trys like windows ping does).
b) the catch output is multiple lines long, thats why you have to split the text @ \n
as said befor, dont you exec but try it with "open"...