<?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/2929" />

	<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>2002-11-01T09:59:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-01T09:59:54-04:00</updated>

		<published>2002-11-01T09:59:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12675#p12675</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12675#p12675"/>
		<title type="html"><![CDATA[Traceroute...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12675#p12675"><![CDATA[
Ok, thanx!<p>Statistics: Posted by Guest — Fri Nov 01, 2002 9:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-01T09:17:37-04:00</updated>

		<published>2002-11-01T09:17:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12671#p12671</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12671#p12671"/>
		<title type="html"><![CDATA[Traceroute...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12671#p12671"><![CDATA[
As well as this, you could use the "exec" command instead.<br><br>While exec is gurenteed to block, unlike open, the way this traceroute script is setup, it would block anyway, so there is no real disadvantage to using this.<br><br>Instead if using gets or read to read the ouput from the open file pointer, the data is simply returned to the variable straight away.<br><br>You simply split the output using \n, and output each line.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Nov 01, 2002 9:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tainted]]></name></author>
		<updated>2002-11-01T09:10:04-04:00</updated>

		<published>2002-11-01T09:10:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12667#p12667</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12667#p12667"/>
		<title type="html"><![CDATA[Traceroute...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12667#p12667"><![CDATA[
I can't see anything wrong with that code offhand, perhaps try a .restart to clear out any previous 'test' versions of the script? That catch command is in perfect working order, though it may be something with the data fed into it from $input. A pair of "s might help around the gets command although.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1256">tainted</a> — Fri Nov 01, 2002 9:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-01T08:01:27-04:00</updated>

		<published>2002-11-01T08:01:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12664#p12664</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12664#p12664"/>
		<title type="html"><![CDATA[Traceroute...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12664#p12664"><![CDATA[
I just can’t get this right, should it be with or without $text?<br>There is one error that says that the arguments are wrong, what does this mean? And how should I change it? This is strange I think, because usually, when redesiged this script to use another command, like reading from a document, it works..  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"> <br><br>Here's the script:<div class="codebox"><p>Code: </p><pre><code>bind pub o ?access pub:tracerouteproc pub:traceroute {nick uhost hand chan text} {set input [open "|/bin/traceroute $text" r]      while {![eof $input]} {catch {set contents [gets $input]}putserv "NOTICE $nick :$contents"}close $input}</code></pre></div>And here is the error i get  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mad.gif" width="15" height="15" alt=":x" title="Mad"> :<div class="codebox"><p>Code: </p><pre><code>Tcl error [pub:trace]: wrong # args: should be "catch command ?varName?"</code></pre></div>...<p>Statistics: Posted by Guest — Fri Nov 01, 2002 8:01 am</p><hr />
]]></content>
	</entry>
	</feed>
