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

	<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>2008-12-22T14:26:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-12-22T14:26:20-04:00</updated>

		<published>2008-12-22T14:26:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86457#p86457</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86457#p86457"/>
		<title type="html"><![CDATA[Custom log file sort of]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86457#p86457"><![CDATA[
Since clear is triggered by a time-bind, it should take "minute hour day month year" (the names do not matter) as its parameters. You can just use "args" since you're not going to use any of the proc's parameters.<div class="codebox"><p>Code: </p><pre><code>proc clear args { global db set f [open $db w] close $f}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Dec 22, 2008 2:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ShavdApe]]></name></author>
		<updated>2008-12-22T12:34:20-04:00</updated>

		<published>2008-12-22T12:34:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86450#p86450</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86450#p86450"/>
		<title type="html"><![CDATA[Custom log file sort of]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86450#p86450"><![CDATA[
This doesnt appear to work for me so im confused i tried to do it on a bind time basis and nothing also did it on a trigger and that didnt work either.<br><br>bind pub - !clear clear<br><br>proc clear {} {<br>global db<br>set f [open $db w] <br>close $f<br>}<br><br>Actually the above code just give an error when i try <br>Tcl error [clear]: wrong # args: should be "clear"<br>but as i say ive also tried to do it on a time basis<br><br>I tried to add things like <br>proc clear { nick uhost handle chan arg } { <br><br>but still gave simmilar arror to above. so any help appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4266">ShavdApe</a> — Mon Dec 22, 2008 12:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ShavdApe]]></name></author>
		<updated>2008-12-21T18:19:46-04:00</updated>

		<published>2008-12-21T18:19:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86443#p86443</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86443#p86443"/>
		<title type="html"><![CDATA[Custom log file sort of]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86443#p86443"><![CDATA[
cool thanks that will do <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4266">ShavdApe</a> — Sun Dec 21, 2008 6:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-12-21T18:18:34-04:00</updated>

		<published>2008-12-21T18:18:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86442#p86442</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86442#p86442"/>
		<title type="html"><![CDATA[Custom log file sort of]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86442#p86442"><![CDATA[
To clear a file you can use this code<div class="codebox"><p>Code: </p><pre><code>set f [open &lt;file&gt; w]close $f</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Dec 21, 2008 6:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ShavdApe]]></name></author>
		<updated>2008-12-21T18:05:38-04:00</updated>

		<published>2008-12-21T18:05:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86440#p86440</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86440#p86440"/>
		<title type="html"><![CDATA[Custom log file sort of]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86440#p86440"><![CDATA[
Hi there im looking for help on how i would go about clearing a log file every 24 hours a sort of custom log file i guess based on specific triggers.<br><br>Any help appreciated thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4266">ShavdApe</a> — Sun Dec 21, 2008 6:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
