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

	<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-11-27T08:36:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-27T08:36:56-04:00</updated>

		<published>2002-11-27T08:36:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13677#p13677</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13677#p13677"/>
		<title type="html"><![CDATA[Catch and errMsg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13677#p13677"><![CDATA[
It works great<br><br>Thx agian PPSlim <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><blockquote class="uncited"><div>Problem is solved. No other solutions need  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised"> </div></blockquote>Greetz TeDDyBeeR<p>Statistics: Posted by Guest — Wed Nov 27, 2002 8:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-27T08:30:50-04:00</updated>

		<published>2002-11-27T08:30:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13675#p13675</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13675#p13675"/>
		<title type="html"><![CDATA[Catch and errMsg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13675#p13675"><![CDATA[
oke so i must user this code :<br><div class="codebox"><p>Code: </p><pre><code>catch {file copy -force ${rtmemomem} ${rtmemotmp}} errMsg </code></pre></div>i will try it <br><br>thx PPSlim  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by Guest — Wed Nov 27, 2002 8:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-27T07:54:14-04:00</updated>

		<published>2002-11-27T07:54:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13674#p13674</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13674#p13674"/>
		<title type="html"><![CDATA[Catch and errMsg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13674#p13674"><![CDATA[
Note your use of the catch command<br><div class="codebox"><p>Code: </p><pre><code>catch {[file copy -force ${rtmemomem} ${rtmemotmp}]} errMsg</code></pre></div>You have enclosed the file command within [].<br><br>You should use it without this.<br><br>Think of the catch command, as a wrapper<br><div class="codebox"><p>Code: </p><pre><code>file copy -force ${rtmemomem} ${rtmemotmp}</code></pre></div>You wrap this command with catch.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Nov 27, 2002 7:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-27T07:29:26-04:00</updated>

		<published>2002-11-27T07:29:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13673#p13673</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13673#p13673"/>
		<title type="html"><![CDATA[Catch and errMsg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13673#p13673"><![CDATA[
Hello Can someone help me out...<br><br>I try to copy a file (i know that command) but i want to catch the error message of it... but if there is now errormessage then the bot zefl will give an error <br><div class="codebox"><p>Code: </p><pre><code>proc { ...  }  {   ....   catch {[file copy -force ${rtmemomem} ${rtmemotmp}]} errMsg   putlog "Result: $errMsg"   if {$errMsg == ""} {   .....   } else {   ......   }}</code></pre></div>if there is an error 'errMsg' wil be text else the bot will generate this error:<div class="codebox"><p>Code: </p><pre><code> Result: invalid command name "" </code></pre></div>This error will generate when 'errMsg' is noting ot is not set<br><br>already thx for thous hwo can hel pme out   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> <br><br>greets TeDDyBeeR<p>Statistics: Posted by Guest — Wed Nov 27, 2002 7:29 am</p><hr />
]]></content>
	</entry>
	</feed>
