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

	<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-03T08:20:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-10-03T08:20:17-04:00</updated>

		<published>2002-10-03T08:20:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11646#p11646</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11646#p11646"/>
		<title type="html"><![CDATA[timer code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11646#p11646"><![CDATA[
No need, "file exists" will check directories too.<br><br>Simply place the directory in the list, and it will dot he work.<br><blockquote class="uncited"><div>% file exists /etc/passwd<br>1<br>% file exists /etc/passwd.bak<br>0<br>% file exists /etc/<br>1<br>% file exists /etf/<br>0</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Oct 03, 2002 8:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-10-03T01:32:34-04:00</updated>

		<published>2002-10-03T01:32:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11633#p11633</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11633#p11633"/>
		<title type="html"><![CDATA[timer code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11633#p11633"><![CDATA[
if i want to use check a directory in my shell, shall i change it to:<br><br>set dir "/home/blah/"<br><br><br>    if {![dir exists $a]} { <br><br><br>??<p>Statistics: Posted by Guest — Thu Oct 03, 2002 1:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-17T04:26:22-04:00</updated>

		<published>2002-09-17T04:26:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10991#p10991</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10991#p10991"/>
		<title type="html"><![CDATA[timer code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10991#p10991"><![CDATA[
somthing like<br><div class="codebox"><p>Code: </p><pre><code>set file_chk {{/etc/hosts}{/home/users/eggdrop/files/die.if.not.exists}}bind time - "*" check_fileproc check_file {min hour day month year} {  global file_chk  foreach a $file_chk {    set msg "Checking for file $a :"    if {![file exists $a]} {      die "$msg Failed"    } else {      putlog "$msg Passed"    }  }}</code></pre></div>This will check once a min for each file int he list. You can add code to reduce it down to once every 5 mins, 10 mins or whatever you want.<br><br>Place a # infront of the word "putlog" to stop it from displaying passed everytime.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Sep 17, 2002 4:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-17T04:09:05-04:00</updated>

		<published>2002-09-17T04:09:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10990#p10990</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10990#p10990"/>
		<title type="html"><![CDATA[timer code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10990#p10990"><![CDATA[
hi....<br>i need help about to make tcl that automatically set timer to die if it cant find a file in the shell<br><br>thx<p>Statistics: Posted by Guest — Tue Sep 17, 2002 4:09 am</p><hr />
]]></content>
	</entry>
	</feed>
