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

	<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>2007-05-11T18:41:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-11T18:41:21-04:00</updated>

		<published>2007-05-11T18:41:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72680#p72680</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72680#p72680"/>
		<title type="html"><![CDATA[All Scripts Executing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72680#p72680"><![CDATA[
Setting LOAD_ALL_SCRIPTS to 0 solves your problem without having to remove that peace of code (in case you want to enable it some other time).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri May 11, 2007 6:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Artificial]]></name></author>
		<updated>2007-05-11T12:10:31-04:00</updated>

		<published>2007-05-11T12:10:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72662#p72662</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72662#p72662"/>
		<title type="html"><![CDATA[Solved]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72662#p72662"><![CDATA[
AHA!<br><div class="codebox"><p>Code: </p><pre><code># Load all *.tcl files in either this directory or "script-path".if {$LOAD_ALL_SCRIPTS} {  putlog "--------------------------------------";  putlog "-------- Initialising scripts --------";  if {![info exists script-path]} {    set script-path [list [file dirname [info script]]];  }  foreach fsck(dir) ${script-path} {    putlog "Current search path:";    putlog $fsck(dir);    set fsck(scripts) [lsort -dictionary [glob -nocomplain -- "[string trimright $fsck(dir) "/"]/*"]];    set fsck(error) "";    set fsck(x) 0; set fsck(y) 0;    foreach fsck(script) $fsck(scripts) {      if {![file isdirectory $fsck(script)] &amp;&amp; [string match -nocase *?.tcl $fsck(script)]} {        incr fsck(y);        if {![string compare [info script] $fsck(script)]} {          incr fsck(x);          continue;        }        if {[catch {source $fsck(script)} fsck(error)]} {          Error "fsck" FATAL "Couldn't load $fsck(script) \[$fsck(error)\]";          continue;        }        incr fsck(x);      }    }    putlog "$fsck(x) of $fsck(y) script[expr {($fsck(y) == 1) ? "" : "s"}] initialised.";  }  catch {unset fsck}}</code></pre></div>What a curious bit of code. Thank you for the prompt responses! This is completely my fault for not reviewing what a script does before executing it. Lesson learned! Quite a useful function too, however need to vet through my scripts directory to weed out outdated scripts and scripts I don't want run - such as one that emulates another person by creating new lines from a grepped logfile.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8984">Artificial</a> — Fri May 11, 2007 12:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-05-11T07:44:17-04:00</updated>

		<published>2007-05-11T07:44:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72651#p72651</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72651#p72651"/>
		<title type="html"><![CDATA[All Scripts Executing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72651#p72651"><![CDATA[
You might like to search through your scripts for anyone containing the command "glob", as this could be used to locate files in a speciffic path or such. The command you'd be looking for should look something like this:<div class="codebox"><p>Code: </p><pre><code>set scriptdir "./scripts"foreach script [glob $scriptdir/*.tcl] {  source $script}</code></pre></div>I assume you've done a complete .restart after removing scripts rather than simply doing a .rehash <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=8052">nml375</a> — Fri May 11, 2007 7:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-11T06:04:35-04:00</updated>

		<published>2007-05-11T06:04:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72650#p72650</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72650#p72650"/>
		<title type="html"><![CDATA[Re: Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72650#p72650"><![CDATA[
<blockquote class="uncited"><div>My only guess as of now are that one of the newer scripts is executing the other scripts (not sure how). I'll give a better break down shortly.</div></blockquote>Definitely that's the issue, Eggdrop only loads the scripts specified via source (in the .conf file or any other loaded script).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri May 11, 2007 6:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Artificial]]></name></author>
		<updated>2007-05-11T04:08:49-04:00</updated>

		<published>2007-05-11T04:08:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72648#p72648</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72648#p72648"/>
		<title type="html"><![CDATA[Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72648#p72648"><![CDATA[
I realize how things operate normally, however I am loading a config file that only specifies ~ 30 scripts. Scripts NOT in the config file are loading. I have even removed the commented out scripts. Thats why it's odd. Unfortunately I did not make a backup of the config file (since it was business as usual + a few new scripts). I am going to retry a stock config and see if I get the same results.<br><br>Is it possible for the eggdrop to load an entire directory (*.tcl)?<br><br>My only guess as of now are that one of the newer scripts is executing the other scripts (not sure how). I'll give a better break down shortly.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8984">Artificial</a> — Fri May 11, 2007 4:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2007-05-11T02:02:10-04:00</updated>

		<published>2007-05-11T02:02:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72645#p72645</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72645#p72645"/>
		<title type="html"><![CDATA[All Scripts Executing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72645#p72645"><![CDATA[
what do you mean that all the scripts are initializing?  Scripts are loaded via the conf file, down at the bottom in the <strong class="text-strong">scripts</strong> section.  If you have a script listed down there, it will load, if it is commented out, it will not.   Maybe I am just not clear about what you mean exactly.... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_question.gif" width="15" height="15" alt=":?:" title="Question"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Fri May 11, 2007 2:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Artificial]]></name></author>
		<updated>2007-05-10T23:37:34-04:00</updated>

		<published>2007-05-10T23:37:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72643#p72643</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72643#p72643"/>
		<title type="html"><![CDATA[All Scripts Executing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72643#p72643"><![CDATA[
I have experienced an odd issue with eggdrop 1.6.18. Besides this one issue the bot operates flawlessly. The problem is that nearly every script in the /scripts directory is executed. Currently 84 scripts reside in that directory (as the result of heavy tweaks and shifting interests over the years) and 82 are initialized!<br><br>The config file currently in use has at most 1/2 of those (usually a 1/3rd) loaded at any one time. What is alarming is scripts not enabled (or listed!) in the current bot config file are being executed. I noticed in the console log following the "Initialising Scripts" line:<br><br>Current search path:<br>scripts<br><br>Followed by a list of all of the scripts in the /scripts directory. Any idea whats going on?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8984">Artificial</a> — Thu May 10, 2007 11:37 pm</p><hr />
]]></content>
	</entry>
	</feed>
