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

	<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>2014-03-02T11:16:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2014-03-02T11:16:31-04:00</updated>

		<published>2014-03-02T11:16:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102637#p102637</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102637#p102637"/>
		<title type="html"><![CDATA[Proc Finish?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102637#p102637"><![CDATA[
Remove the comment (# close tracefile) from your code...<br>Or prefix the # with a ;<br>Such as this:<div class="codebox"><p>Code: </p><pre><code>...close $tracefile ;# close tracefile</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Mar 02, 2014 11:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sh.minaee]]></name></author>
		<updated>2014-03-02T02:17:13-04:00</updated>

		<published>2014-03-02T02:17:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102634#p102634</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102634#p102634"/>
		<title type="html"><![CDATA[Proc Finish?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102634#p102634"><![CDATA[
I've did that, but this time i have this error : <br>ns: finish: wrong # args: should be "close channelId"<br>    while executing<br>"close $tracefile          # close tracefile"<br>    (procedure "finish" line 5)<br>    invoked from within<br>"finish"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12351">sh.minaee</a> — Sun Mar 02, 2014 2:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-08-20T09:32:19-04:00</updated>

		<published>2011-08-20T09:32:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97466#p97466</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97466#p97466"/>
		<title type="html"><![CDATA[Proc Finish?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97466#p97466"><![CDATA[
Changing the definition of "finish" into this:<div class="codebox"><p>Code: </p><pre><code>proc finish {} {  global ns tracefile namfile  $ns flush-trace  close $tracefile  close $namfile  exec nam -a out1.nam &amp;  exit 0}</code></pre></div>Should sort the posted error message. Please post any new error messages you get.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Aug 20, 2011 9:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jnc_xavier]]></name></author>
		<updated>2011-08-20T09:27:01-04:00</updated>

		<published>2011-08-20T09:27:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97465#p97465</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97465#p97465"/>
		<title type="html"><![CDATA[Proc Finish?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97465#p97465"><![CDATA[
but that too aint working. could u plz help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11757">jnc_xavier</a> — Sat Aug 20, 2011 9:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-08-20T09:07:53-04:00</updated>

		<published>2011-08-20T09:07:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97464#p97464</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97464#p97464"/>
		<title type="html"><![CDATA[Proc Finish?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97464#p97464"><![CDATA[
In tcl, all arguments must be on the same line (though each argument may contain newlines)<br>Thus, this is incorrect:<div class="codebox"><p>Code: </p><pre><code>proc finish {}{...</code></pre></div>The proper code would look like this:<div class="codebox"><p>Code: </p><pre><code>proc finish {} {...</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Aug 20, 2011 9:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jnc_xavier]]></name></author>
		<updated>2011-08-20T08:57:35-04:00</updated>

		<published>2011-08-20T08:57:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97462#p97462</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97462#p97462"/>
		<title type="html"><![CDATA[Proc Finish?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97462#p97462"><![CDATA[
when i execute this file i get the error as said below. plz help<div class="codebox"><p>Code: </p><pre><code>#Create a ns simulatorset ns [new Simulator]#Open the NS trace fileset tracefile [open out1.tr w]$ns trace-all $tracefile#Open the NAM trace fileset namfile [open out1.nam w]$ns namtrace-all $namfile#===================================#        Nodes Definition        #===================================#Create 3 nodesset n0 [$ns node]set n1 [$ns node]set n2 [$ns node]#===================================#        Links Definition        #===================================#Createlinks between nodes$ns duplex-link $n0 $n1 100.0Mb 10ms DropTail$ns queue-limit $n0 $n1 50$ns duplex-link $n0 $n2 100.0Mb 10ms DropTail$ns queue-limit $n0 $n2 50#Give node position (for NAM)$ns duplex-link-op $n0 $n1 orient right-down$ns duplex-link-op $n0 $n2 orient right-down#===================================#        Agents Definition        #===================================#===================================#        Applications Definition        #===================================#===================================#        Termination        #===================================#Define a 'finish' procedureproc finish {}{    global ns tracefile namfile    $ns flush-trace    close $tracefile    close $namfile    exec nam -a out1.nam &amp;    exit 0}$ns at 10.0 "finish"$ns run</code></pre></div>ERROR THAT SHOWS UP:<blockquote class="uncited"><div>wrong #args: should be "proc name args body" <br>while executing <br>"proc finish {}"<br>(file wired2node.tcl line 71)</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11757">jnc_xavier</a> — Sat Aug 20, 2011 8:57 am</p><hr />
]]></content>
	</entry>
	</feed>
