<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/6129" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-11-20T08:17:02-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/6129</id>

		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-11-20T08:17:02-04:00</updated>

		<published>2003-11-20T08:17:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30392#p30392</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30392#p30392"/>
		<title type="html"><![CDATA[Ping Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30392#p30392"><![CDATA[
<blockquote class="uncited"><div>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..</div></blockquote>how should it...<br>a) the ping command works different on unix and windows, if you use this exec on unix you bot will freeze (because ping &lt;host&gt; wont quick after 4 trys like windows ping does).<br>b) the catch output is multiple lines long, thats why you have to split the text @ \n<br><br>as said befor, dont you exec but try it with "open"...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Thu Nov 20, 2003 8:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2003-11-20T02:41:58-04:00</updated>

		<published>2003-11-20T02:41:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30377#p30377</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30377#p30377"/>
		<title type="html"><![CDATA[Ping Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30377#p30377"><![CDATA[
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..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Thu Nov 20, 2003 2:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-11-20T02:40:02-04:00</updated>

		<published>2003-11-20T02:40:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30375#p30375</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30375#p30375"/>
		<title type="html"><![CDATA[Ping Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30375#p30375"><![CDATA[
you didnt define $hostname anywhere in the script, so how could it be read by the exec ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Thu Nov 20, 2003 2:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[devilsoulblack]]></name></author>
		<updated>2003-11-19T21:55:04-04:00</updated>

		<published>2003-11-19T21:55:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30360#p30360</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30360#p30360"/>
		<title type="html"><![CDATA[error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30360#p30360"><![CDATA[
&lt;Maloso-n&gt; .ping<br>&lt;DeVilSoulBlacK&gt;  PING can't read "hostname": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4165">devilsoulblack</a> — Wed Nov 19, 2003 9:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-11-17T09:06:53-04:00</updated>

		<published>2003-11-17T09:06:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30179#p30179</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30179#p30179"/>
		<title type="html"><![CDATA[Ping Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30179#p30179"><![CDATA[
this script is one of the biggest securety holes ever...<br><br>an exec with a parameter every user (bind -) can use....that system is allready doomed <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>better try  working with open than with exit because it doesnt block your bot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Mon Nov 17, 2003 9:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-11-16T18:05:53-04:00</updated>

		<published>2003-11-16T18:05:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30143#p30143</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30143#p30143"/>
		<title type="html"><![CDATA[Ping Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30143#p30143"><![CDATA[
Hi Guys!<br><br>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.<br><br>So far my code:<div class="codebox"><p>Code: </p><pre><code>bind pub - .ping pingproc ping { nick uhost hand chan arg } {    catch {exec ping $hostname} result    putserv "PRIVMSG $chan : PING $result"}</code></pre></div>After typing .ping in my channel my bot answers with:<br>PING couldn't duplicate input handle: bad file number<br><br>I don´t know what this means and how I could fix it. Could anyone help me please?<p>Statistics: Posted by Guest — Sun Nov 16, 2003 6:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
