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

	<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>2010-04-27T08:07:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[doggo]]></name></author>
		<updated>2010-04-27T08:07:14-04:00</updated>

		<published>2010-04-27T08:07:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92935#p92935</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92935#p92935"/>
		<title type="html"><![CDATA[.txt run]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92935#p92935"><![CDATA[
this will check and read the last line of a .txt file every 1 second<br>or if you have the +n flag -lastline will force a check<br><br>might help with what you want to do <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br><div class="codebox"><p>Code: </p><pre><code># Rls: Auto_Read_txt.tcl v1.0# Date: 27/04/10 # Coded by: doggo # Contact: #alt.binaries.inner-sanctum@EFNET ###############################bind pub n|n -lastline auto_req_read_procset pree_chan "#somewere" set req_file "/home/doggo/news/mysql/auto_req.txt" set insert_interval 1 #in secondsset auto_req_file_mod 0 ## Script Starts Here - DO NOT EDIT BELOW! ##proc auto_req_timer { } {    global insert_interval    auto_req_read_proc    if {[string match *auto_req_timer* [utimers]] != 1} {       utimer $insert_interval auto_req_timer    } } proc auto_req_read_proc { } {    global pree_chan req_file auto_req_file_mod    set file_mtime [file mtime $req_file]    set file_handle [open $req_file r]    set get_data [split [read $file_handle] "\n"]    close $file_handle    set last_line [join [lindex $get_data end]]    if {$last_line == ""} {       set last_line [join [lindex $get_data end-1]]    }    if {$auto_req_file_mod != $file_mtime} {       putquick "PRIVMSG $pree_chan :\00306$last_line"       set auto_req_file_mod $file_mtime    } }    if {[string match *auto_req_timer* [utimers]] != 1} {    utimer $insert_interval auto_req_timer }putlog "Auto_Read_txt.tcl v1.0 #alt.binaries.inner-sanctum"</code></pre></div><div class="codebox"><p>Code: </p><pre><code>[12:41pm] &lt;doggo&gt; -lastline[12:41pm] -tsara- this is the last line doggo :)</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11046">doggo</a> — Tue Apr 27, 2010 8:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Cr0ntab]]></name></author>
		<updated>2010-04-11T17:27:47-04:00</updated>

		<published>2010-04-11T17:27:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92807#p92807</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92807#p92807"/>
		<title type="html"><![CDATA[.txt run]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92807#p92807"><![CDATA[
someoneeeeeeee??? <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=11149">Cr0ntab</a> — Sun Apr 11, 2010 5:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Cr0ntab]]></name></author>
		<updated>2010-04-08T09:13:35-04:00</updated>

		<published>2010-04-08T09:13:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92745#p92745</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92745#p92745"/>
		<title type="html"><![CDATA[.txt run]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92745#p92745"><![CDATA[
hello i would a rather simple script.<br>i would like to type in my channel .run 1.txt for example and the bot reads that .txt that is in the /scripts folder and it writes each line of the text on the channel that is triggered with a custom delay between each channel(the delay in seconds to be customised in the tcl)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11149">Cr0ntab</a> — Thu Apr 08, 2010 9:13 am</p><hr />
]]></content>
	</entry>
	</feed>
