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

	<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-10-02T16:35:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-10-02T16:35:31-04:00</updated>

		<published>2002-10-02T16:35:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11624#p11624</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11624#p11624"/>
		<title type="html"><![CDATA[keep tcl logfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11624#p11624"><![CDATA[
hmm, yes that's one way to do it...<br><br>Thanks for the input, just wanted to see if it could be true that it didn't save the bloody logfile settings <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Wed Oct 02, 2002 4:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-10-02T16:33:00-04:00</updated>

		<published>2002-10-02T16:33:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11623#p11623</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11623#p11623"/>
		<title type="html"><![CDATA[keep tcl logfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11623#p11623"><![CDATA[
AHH, now I see what you are trying to do.<br><br>You type a DCC command, and a new logfile is started. When you do a rehash, this logfile is no longer ologged to, and requires that you type the command again.<br><br>This is the way that eggdrop is designed. When the bot loads, it reads the logfile lines along with the rest of the config file. As such, it reads them again on a rehash.<br><br>Any logile lines removed means that the logging stops on these.<br><br>You will need to do a lot more work to the Tcl, to get what you want.<br><br>You would have to write a line to file, including the logfile information.<br><br>You could then load this file on rehash, and start logging on these channels.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Oct 02, 2002 4:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-10-02T10:59:11-04:00</updated>

		<published>2002-10-02T10:59:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11612#p11612</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11612#p11612"/>
		<title type="html"><![CDATA[keep tcl logfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11612#p11612"><![CDATA[
Hehe, sorry... Had some email problems<br><br>I was talking about the tcl command "logfile" not my own proc<blockquote class="uncited"><div>  logfile [&lt;modes&gt; &lt;channel&gt; &lt;filename&gt;]<br>    Description: creates a new logfile, which will log the modes given for<br>      the channel listed. If no logfile is specified, a list of existing<br>      logfiles will be returned. "*" indicates all channels. You can also<br>      change the modes and channel of an existing logfile with this command.<br>      Entering a blank mode and channel ("") makes the bot stop logging there.<br>    Returns: filename of logfile created, or, if no logfile is specified, a<br>      list of logfiles such as: {mco * eggdrop.log} {jp #lame lame.log}<br>    Module: core</div></blockquote>but here it is<br><div class="codebox"><p>Code: </p><pre><code>proc new_logfile {handle idx text} {set chan [lindex [split $text] 0]if {$chan == ""} { putdcc $idx "Usage: +log &lt;channel&gt;"; return 0}set path "logs/[stripchar $chan].log"logfile pjk $chan $pathputlog "Now logging $chan to $path"}</code></pre></div><p>Statistics: Posted by Guest — Wed Oct 02, 2002 10:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-10-02T03:27:02-04:00</updated>

		<published>2002-10-02T03:27:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11600#p11600</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11600#p11600"/>
		<title type="html"><![CDATA[keep tcl logfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11600#p11600"><![CDATA[
take a better look ppslim <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br>TomSommer has not given us any code yet<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Oct 02, 2002 3:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-10-02T03:15:03-04:00</updated>

		<published>2002-10-02T03:15:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11599#p11599</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11599#p11599"/>
		<title type="html"><![CDATA[keep tcl logfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11599#p11599"><![CDATA[
The code you have pastes, would not explain why you are having the problems you are.<br><br>We would need to see how you replace it, and pretty much the whole of new log proc.<br><br>Normaly, the only overwitting this sort of command will do, is replace itself (if usign rename, so you can call the old script later.)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Oct 02, 2002 3:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-10-02T02:55:00-04:00</updated>

		<published>2002-10-02T02:55:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11598#p11598</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11598#p11598"/>
		<title type="html"><![CDATA[keep tcl logfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11598#p11598"><![CDATA[
<blockquote class="uncited"><div>set thefile "/home/eggdrop/logs/" <br><br>if {![file exists $thefile/logfile.txt]} { <br>  set newfile [open $thefile/logfile.txt w] <br>  puts $newfile "" <br>  close $newfile <br>} </div></blockquote>just pointiong out one thing, if u open the file in a+ the file is created if it does not exist...then you don't have to puts $newfile ""<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Oct 02, 2002 2:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spyda]]></name></author>
		<updated>2002-10-01T20:06:31-04:00</updated>

		<published>2002-10-01T20:06:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11589#p11589</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11589#p11589"/>
		<title type="html"><![CDATA[not enough info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11589#p11589"><![CDATA[
For what you have said and ppslim looking at the question it looks like you open the log file to write data in it.. when you start the command put somewhere in your tcl so it makes sure that the file is made / if not make the file for you<br><div class="codebox"><p>Code: </p><pre><code>set thefile "/home/eggdrop/logs/"if {![file exists $thefile/logfile.txt]} {  set newfile [open $thefile/logfile.txt w]  puts $newfile ""  close $newfile}</code></pre></div>If you put that at the top of the Tcl file without a proc everytime you <strong class="text-strong">.rehash</strong> the bot it will check to make sure the file is there.. If not it will make one for you.<br><br>Hope that helps<br><br>------------<br>ThePope<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1731">spyda</a> — Tue Oct 01, 2002 8:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-10-01T18:58:13-04:00</updated>

		<published>2002-10-01T18:58:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11586#p11586</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11586#p11586"/>
		<title type="html"><![CDATA[keep tcl logfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11586#p11586"><![CDATA[
We would have to see some sort of code, to understand what is happening when.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Oct 01, 2002 6:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-10-01T16:56:11-04:00</updated>

		<published>2002-10-01T16:56:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11581#p11581</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11581#p11581"/>
		<title type="html"><![CDATA[keep tcl logfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11581#p11581"><![CDATA[
I'm making a new logfile with the tcl command: logfile<br><br>logfile &lt;modes&gt; &lt;channel&gt; &lt;filename&gt;<br><br>It works great... but when I rehash the bot, the bot has forgotton my logfile? Why <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by Guest — Tue Oct 01, 2002 4:56 pm</p><hr />
]]></content>
	</entry>
	</feed>
