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

	<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-09-29T07:14:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-29T07:14:39-04:00</updated>

		<published>2002-09-29T07:14:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11479#p11479</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11479#p11479"/>
		<title type="html"><![CDATA[Make New DB file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11479#p11479"><![CDATA[
The only thing that could effect this is if you, or any other script, uses the cd command in Tcl.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Sep 29, 2002 7:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spyda]]></name></author>
		<updated>2002-09-28T20:58:24-04:00</updated>

		<published>2002-09-28T20:58:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11476#p11476</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11476#p11476"/>
		<title type="html"><![CDATA[Thanx]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11476#p11476"><![CDATA[
I was up to 3am working on other ways that work. But to no luck would it make a file in the main DIR of the eggdrop.. <br><br>I tryed your way stdragon and it works too.. <br><br>So thanx to stdragon and papillon for your help. I didn;t know anything about using files in TCL, and now I know how to do it!<br><br>Thanx again guys and keep up the good work!<br><br>------------<br>ThePope<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1731">spyda</a> — Sat Sep 28, 2002 8:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-28T14:47:53-04:00</updated>

		<published>2002-09-28T14:47:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11472#p11472</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11472#p11472"/>
		<title type="html"><![CDATA[Make New DB file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11472#p11472"><![CDATA[
ThePope - Yes you can open a file with just the name. It will open the file in the current directory. Since the bot starts in /home/you/egg (or something) that will be the current directory, not ~/egg/scripts.<br><br>You could say open scripts/filename.db.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Sep 28, 2002 2:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-09-28T11:45:19-04:00</updated>

		<published>2002-09-28T11:45:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11466#p11466</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11466#p11466"/>
		<title type="html"><![CDATA[Make New DB file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11466#p11466"><![CDATA[
sorry I have no idea if that's possible<br>u could just do <div class="codebox"><p>Code: </p><pre><code>set thedir "/home/kissmine/scripts" proc asus_pub_menu {nick uhost hand chan text} { global asus thedirif {[file exists "thedir/setup.db"] != "1"} {etc... </code></pre></div>as an option if u are doing this with many files<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sat Sep 28, 2002 11:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spyda]]></name></author>
		<updated>2002-09-28T11:23:07-04:00</updated>

		<published>2002-09-28T11:23:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11465#p11465</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11465#p11465"/>
		<title type="html"><![CDATA[Nice Work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11465#p11465"><![CDATA[
Thanx Papillon..<br> Works well. I was just wonding if you can open a file but just using the file name eg:<br><div class="codebox"><p>Code: </p><pre><code>if {![file exists setup.db]} { set asus_file [open setup.db] ect ect...}</code></pre></div>Is that possable?? And to what DIR would it put the file??<br><br>Thanx in Advance<br>------------<br>ThePope<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1731">spyda</a> — Sat Sep 28, 2002 11:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-09-28T11:00:10-04:00</updated>

		<published>2002-09-28T11:00:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11463#p11463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11463#p11463"/>
		<title type="html"><![CDATA[Make New DB file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11463#p11463"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set thefile "/home/kissmine/scripts/setup.db"proc asus_pub_menu {nick uhost hand chan text} { global asus thefileif {[file exists thefile] != "1"} {   set asus_file [open $thefile w]   puts $asus_file "1"   close $asus_file } putserv "PRIVMSG $nick :\001DCC CHAT chat [myip] $asus(port)\001" } </code></pre></div>try that<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sat Sep 28, 2002 11:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spyda]]></name></author>
		<updated>2002-09-28T08:30:16-04:00</updated>

		<published>2002-09-28T08:30:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11454#p11454</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11454#p11454"/>
		<title type="html"><![CDATA[Make New DB file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11454#p11454"><![CDATA[
Hey everyone again.. <br> <br>Learning TCL real fast and i have had feed back on my first tcl, so that is good! Now for my new problem.<br><div class="codebox"><p>Code: </p><pre><code>proc asus_pub_menu {nick uhost hand chan text} { global asus if {[file exists setup.db] != "1"} {   set asus_file [open setup.db w]  puts $asus_file "1"  close $asus_file } putserv "PRIVMSG $nick :\001DCC CHAT chat [myip] $asus(port)\001"}</code></pre></div>It will not make a new file if the setup.db is not in the /home/kissmine/scripts if setup.db is not there!!<br><br>I run my own box and I check to make sure that the access was right for the eggdrops, but that still have not fixed my problem!!!<br><br>I hope it is somewhere in my coding, but I cant seem to find it!<br><br>Thanx in Advance<br><br>----------<br>ThePope<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1731">spyda</a> — Sat Sep 28, 2002 8:30 am</p><hr />
]]></content>
	</entry>
	</feed>
