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

	<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>2003-02-23T09:28:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[jamesp0tter]]></name></author>
		<updated>2003-02-23T09:28:13-04:00</updated>

		<published>2003-02-23T09:28:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16967#p16967</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16967#p16967"/>
		<title type="html"><![CDATA[:)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16967#p16967"><![CDATA[
tkx 4 your help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>[]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2614">jamesp0tter</a> — Sun Feb 23, 2003 9:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-23T09:03:25-04:00</updated>

		<published>2003-02-23T09:03:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16966#p16966</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16966#p16966"/>
		<title type="html"><![CDATA[doing something the moment a file is created]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16966#p16966"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc our_checkfile {file time} {  if {[file exists $file]} { our_fileexists $file }  utimer $time [list our_checkfile $file $time]}out_checkfile /home/ppslim/text.txt 30</code></pre></div>That will check for the file every 30 seconds, and call "our_fileexists" if it's there.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Feb 23, 2003 9:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jamesp0tter]]></name></author>
		<updated>2003-02-22T20:34:43-04:00</updated>

		<published>2003-02-22T20:34:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16958#p16958</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16958#p16958"/>
		<title type="html"><![CDATA[doing something the moment a file is created]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16958#p16958"><![CDATA[
nope, just a specific file, one only, in one dir as well..<br>i was thinking about sending the info to a mysql table &amp; then tell bot to grab it, but that's other issue..<br>so, just to check if, for ex "somefile.txt" exists in curr dir, is the best method to use timers?<br><br>tkx [] <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=2614">jamesp0tter</a> — Sat Feb 22, 2003 8:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-22T16:10:59-04:00</updated>

		<published>2003-02-22T16:10:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16949#p16949</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16949#p16949"/>
		<title type="html"><![CDATA[doing something the moment a file is created]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16949#p16949"><![CDATA[
It all depends, your question was rather vague.<br><br>Are you checking to see if any old file is created?<br><br>Are you looking for a file with a specific name?<br><br>Any file within a certain set of directories?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sat Feb 22, 2003 4:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jamesp0tter]]></name></author>
		<updated>2003-02-22T15:58:03-04:00</updated>

		<published>2003-02-22T15:58:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16948#p16948</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16948#p16948"/>
		<title type="html"><![CDATA[oki.. another question :) (sorry)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16948#p16948"><![CDATA[
ppslim:<br><br>hmm, ok.. so, i'll put a timer that checks if a file exist every 30 seconds or so.. don't you think that'll use lots of memory? :\ <br>i'm trying to find the most accurate and less-memory-used proc.. <br>could you give your opinion pls <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>is timers the best? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>tkx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2614">jamesp0tter</a> — Sat Feb 22, 2003 3:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2003-02-22T15:24:24-04:00</updated>

		<published>2003-02-22T15:24:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16943#p16943</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16943#p16943"/>
		<title type="html"><![CDATA[doing something the moment a file is created]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16943#p16943"><![CDATA[
in tcl-commands.doc are all binds availble listed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sat Feb 22, 2003 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-22T15:16:56-04:00</updated>

		<published>2003-02-22T15:16:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16942#p16942</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16942#p16942"/>
		<title type="html"><![CDATA[doing something the moment a file is created]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16942#p16942"><![CDATA[
There is no Tcl way to trace file changes, and I don't know about other program based versions.<br><br>Even if there are any commands that can be used (not pure Tcl that is), it would be far simpler to do a check using timers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sat Feb 22, 2003 3:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jamesp0tter]]></name></author>
		<updated>2003-02-22T15:05:47-04:00</updated>

		<published>2003-02-22T15:05:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16936#p16936</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16936#p16936"/>
		<title type="html"><![CDATA[doing something the moment a file is created]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16936#p16936"><![CDATA[
well, something like the topic states.. like, the moment i create a file, the eggdrop will *do something*, like getting the file content and posting it somewhere, then deleting it and wait for another creation.<br><br>can this be done or do i have to bind the *proc of checking file exists* to each minute? :\<br><br>tkx in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2614">jamesp0tter</a> — Sat Feb 22, 2003 3:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
