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

	<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>2008-12-10T22:59:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[topdawg_b]]></name></author>
		<updated>2008-12-10T22:59:24-04:00</updated>

		<published>2008-12-10T22:59:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86179#p86179</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86179#p86179"/>
		<title type="html"><![CDATA[using bind to remove a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86179#p86179"><![CDATA[
ty for the info I am new to this. it is a lot to consume. info seems to be spread out. I will read. thanks for the help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10347">topdawg_b</a> — Wed Dec 10, 2008 10:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-12-10T12:30:26-04:00</updated>

		<published>2008-12-10T12:30:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86175#p86175</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86175#p86175"/>
		<title type="html"><![CDATA[using bind to remove a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86175#p86175"><![CDATA[
1st:<br>Don't use <strong class="text-strong">lindex</strong> like that... <em class="text-italics">$text</em> is a string, not a list (consider using <strong class="text-strong">spli</strong>t to convert it into a list).<br><br>2nd:<br>Don't enclose the <strong class="text-strong">file</strong> command with [] if you do not intend to make use of the return code. Currently, you are trying to execute the return code from the <strong class="text-strong">file delete</strong> operation as a new command.<br>The <strong class="text-strong">file delete</strong> command will always return an empty string, causing your script to try and execute "", which is not a valid command. This will generate an error, and script execution is terminated.<br><br>Suggested further reading:<br><a href="http://www.tcl.tk/man/tcl8.4/TclCmd/Tcl.htm#M10" class="postlink">Tcl manual page - Command substitutions</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Dec 10, 2008 12:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[topdawg_b]]></name></author>
		<updated>2008-12-10T12:04:58-04:00</updated>

		<published>2008-12-10T12:04:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86173#p86173</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86173#p86173"/>
		<title type="html"><![CDATA[using bind to remove a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86173#p86173"><![CDATA[
im confused  this is my proc <br><br>#delete the file process<br><br>proc del:file {nick user@host handle text} {<br>set delfile [lindex $text 1].ins<br>putserv "PRIVMSG $nick :[lindex $text 1] has been removed"<br>[file delete $delfile]<br>}<br><br>it works like it  is but if I place the  putserv command beneath the <br>[file delete $delfile]<br> the putserv command does not execute. above it, it works fine.<br>what is it  in [file delete $delfile]  that stops my process <br>if I had to execute something after this command how would I?<br>thanks  so much<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10347">topdawg_b</a> — Wed Dec 10, 2008 12:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[topdawg_b]]></name></author>
		<updated>2008-12-10T09:37:03-04:00</updated>

		<published>2008-12-10T09:37:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86171#p86171</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86171#p86171"/>
		<title type="html"><![CDATA[using bind to remove a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86171#p86171"><![CDATA[
that's what i was looking for   ty  very much.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10347">topdawg_b</a> — Wed Dec 10, 2008 9:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2008-12-10T06:58:21-04:00</updated>

		<published>2008-12-10T06:58:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86166#p86166</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86166#p86166"/>
		<title type="html"><![CDATA[using bind to remove a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86166#p86166"><![CDATA[
file delete command:<div class="codebox"><p>Code: </p><pre><code>file delete $file</code></pre></div><a href="http://www.tcl.tk/man/tcl8.4/TclCmd/file.htm#M12" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/file.htm#M12</a><br><br>:&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Wed Dec 10, 2008 6:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[topdawg_b]]></name></author>
		<updated>2008-12-09T23:00:49-04:00</updated>

		<published>2008-12-09T23:00:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86163#p86163</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86163#p86163"/>
		<title type="html"><![CDATA[using bind to remove a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86163#p86163"><![CDATA[
I have instruction files i allow people to make. People make mistakes. I need a command that deletes a file. Ive looked. I havent  found  one yet. I found  1 to remove a directory but not a  file<br>i want to use pubm -|- !remfile del:file then put the command in my proc<br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10347">topdawg_b</a> — Tue Dec 09, 2008 11:00 pm</p><hr />
]]></content>
	</entry>
	</feed>
