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

	<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>2016-09-02T14:19:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2016-09-02T14:19:18-04:00</updated>

		<published>2016-09-02T14:19:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105385#p105385</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105385#p105385"/>
		<title type="html"><![CDATA[Sintax error in proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105385#p105385"><![CDATA[
It worked perfect.<br>Thanks SpiKe^^.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Fri Sep 02, 2016 2:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2016-09-02T08:45:05-04:00</updated>

		<published>2016-09-02T08:45:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105381#p105381</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105381#p105381"/>
		<title type="html"><![CDATA[Sintax error in proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105381#p105381"><![CDATA[
Change this...<div class="codebox"><p>Code: </p><pre><code> set fp [open $fname0 "r"]  close $fp  set data [read -nonewline $fp] </code></pre></div>to...<div class="codebox"><p>Code: </p><pre><code> set fp [open $fname0 "r"]  set data [read -nonewline $fp]  close $fp </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Sep 02, 2016 8:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2016-09-02T08:18:15-04:00</updated>

		<published>2016-09-02T08:18:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105380#p105380</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105380#p105380"/>
		<title type="html"><![CDATA[Sintax error in proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105380#p105380"><![CDATA[
<blockquote class="uncited"><div>Try changing this line...<div class="codebox"><p>Code: </p><pre><code>puts $fp $addjs $tempo $fechaa</code></pre></div>to something more like...<div class="codebox"><p>Code: </p><pre><code>puts $fp "$addjs $tempo $fechaa"</code></pre></div></div></blockquote>Not work.<br>For debugging purposes I have added messages ( blue color code).<br>It shows: Exist file djnick!<blockquote class="uncited"><div>proc addjss { } {<br>global canal_admin<br>if {![file exists djnick]} {<span style="color:blue"> putmsg $canal_admin "Does not exist file djnick!"</span>;return }<br><span style="color:blue">putmsg $canal_admin "Exist file djnick!"</span><br>set fname0 "djnick"<br>set fp [open $fname0 "r"]<br>close $fp<br>set data [read -nonewline $fp]<br>set lines [split $data " "]  <br>set addjs [lindex $lines 0]<br>set tempo [lindex $lines 1]<br>set fechaa [lindex $lines 2]<br> <br>if {![file exists listaDJS.txt]} {<br><span style="color:blue">putmsg $canal_admin "Does not exist file listaDJS!"</span><br>set fs [open listaDJS.txt "w"]<br>puts $fs ""<br>close $fs<br>}  else {<br><span style="color:blue">putmsg $canal_admin "Exist file listaDJs!"</span><br>set fname "listaDJS.txt"<br>set fp [open $fname "a"]<br>puts $fp "$addjs $tempo $fechaa"<br>close $fp <br>}<br>}</div></blockquote>Now the error is:<blockquote class="uncited"><div>can not find channel named "file416"</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Fri Sep 02, 2016 8:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2016-09-02T08:01:34-04:00</updated>

		<published>2016-09-02T08:01:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105379#p105379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105379#p105379"/>
		<title type="html"><![CDATA[Sintax error in proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105379#p105379"><![CDATA[
Try changing this line...<div class="codebox"><p>Code: </p><pre><code>puts $fp $addjs $tempo $fechaa</code></pre></div>to something more like...<div class="codebox"><p>Code: </p><pre><code>puts $fp "$addjs $tempo $fechaa"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Sep 02, 2016 8:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2016-09-02T04:51:09-04:00</updated>

		<published>2016-09-02T04:51:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105377#p105377</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105377#p105377"/>
		<title type="html"><![CDATA[Sintax error in proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105377#p105377"><![CDATA[
How I can invoke this process from another process ?<br>I have invoked the process in another code with name (addjss) , but I get the following error:<div class="codebox"><p>Code: </p><pre><code>proc addjss { } {if {![file exists djnick]} { return }set fname0 "djnick"set fp [open $fname0 "r"]close $fpset data [read -nonewline $fp]set lines [split $data " "]  set addjs [lindex $lines 0]set tempo [lindex $lines 1]set fechaa [lindex $lines 2] if {![file exists listaDJS.txt]} {set fs [open listaDJS.txt "w"]puts $fs ""close $fs}  else {set fname "listaDJS.txt"set fp [open $fname "a"]puts $fp $addjs $tempo $fechaaclose $fp }}</code></pre></div><blockquote class="uncited"><div>wrong # args: should be "puts ?-nonewline? ?channelId? string"</div></blockquote>Do not copy the other process because it is very long.<br>But I think that I'm invoking wrong, I do not think that problem long process.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Fri Sep 02, 2016 4:51 am</p><hr />
]]></content>
	</entry>
	</feed>
