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

	<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-01-15T10:04:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-01-15T10:04:35-04:00</updated>

		<published>2003-01-15T10:04:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15349#p15349</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15349#p15349"/>
		<title type="html"><![CDATA[list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15349#p15349"><![CDATA[
Pfff.. seems that I've figured out after reading more carefuly the page you've gave me. Thanks!<br><br>bind pub n .dirs dirs:list<br><br># dirs list<br>proc dirs:list {nick host hand chan arg} {<br>global ls<br>catch { glob -type d files/* } dirs<br>foreach dr $dirs {<br>putserv "PRIVMSG $chan :[string range $dr [expr [string length files]+1] end]"<br> }<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jan 15, 2003 10:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-01-15T09:42:24-04:00</updated>

		<published>2003-01-15T09:42:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15347#p15347</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15347#p15347"/>
		<title type="html"><![CDATA[list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15347#p15347"><![CDATA[
With: "catch { glob -directory files/ * } dirs" I still get the files among the dirs. Tryed some alternatives but same thing.. Now I'm a bit stuck and confused.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jan 15, 2003 9:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-15T09:20:28-04:00</updated>

		<published>2003-01-15T09:20:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15345#p15345</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15345#p15345"/>
		<title type="html"><![CDATA[list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15345#p15345"><![CDATA[
Please see the usage of the glob command in the Tcl manual pages.<br><br><a href="http://www.tcl.tk/man/tcl8.4/TclCmd/glob.htm" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/glob.htm</a><br><br>It tells you all about how to determine between filetypes<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Jan 15, 2003 9:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-01-15T09:13:43-04:00</updated>

		<published>2003-01-15T09:13:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15344#p15344</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15344#p15344"/>
		<title type="html"><![CDATA[list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15344#p15344"><![CDATA[
# binds<br>bind pub n .dirs dirs:list<br><br># dirs list<br>proc dirs:list {nick host hand chan arg} {<br>global ls<br>catch { glob ls/* } dirs<br>putserv "PRIVMSG $chan :$dirs"<br>}<br><br>And seems to be working. the only thing I must figure out now is how to separate the files from the dirs.<br><br>Any tips, advices or something that can help me out a bit are welcomed, very apreciated and mostly needed. <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=187">caesar</a> — Wed Jan 15, 2003 9:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-01-15T06:30:28-04:00</updated>

		<published>2003-01-15T06:30:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15333#p15333</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15333#p15333"/>
		<title type="html"><![CDATA[list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15333#p15333"><![CDATA[
Or an alternative to that is to read all the dirs name then to lookin each dir for the files. Any sugestions?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jan 15, 2003 6:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-01-15T06:08:56-04:00</updated>

		<published>2003-01-15T06:08:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15328#p15328</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15328#p15328"/>
		<title type="html"><![CDATA[list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15328#p15328"><![CDATA[
# binds<br>bind pub n .files files:list<br><br># stuff<br>set ls(dir) "files"<br>set ls(pattern) "*.txt"<br><br># files list<br>proc files:list {nick host hand chan arg} {<br>global ls<br>catch { glob $ls(dir)/$ls(pattern) } files<br>if {[lrange "$files" 0 4] == "no files matched glob pattern"} {<br>putserv "PRIVMSG $chan :Can't find any files ($ls(pattern)) in \"$ls(dir)\" dir."<br>return }<br>foreach script $files {<br>putserv "PRIVMSG $chan :[string range $script [expr [string length $ls(dir)]+1] end]"<br> }<br>}<br><br>How to make it look in all the dirs from the $ls(dir)? The dir files/ has a tmp/ dir in it and in the tmp/ dir is an txt file and shoud be found.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jan 15, 2003 6:08 am</p><hr />
]]></content>
	</entry>
	</feed>
