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

	<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>2004-09-02T14:06:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-09-02T14:06:40-04:00</updated>

		<published>2004-09-02T14:06:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40547#p40547</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40547#p40547"/>
		<title type="html"><![CDATA[&quot;exec&quot; how to handle errors ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40547#p40547"><![CDATA[
yay works like a charm.. <br><br>uhh acually i found the thread with the search function right before I posted .. but i must have  kinda overread that part ...<br><br>*sigh*  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by Guest — Thu Sep 02, 2004 2:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-09-02T13:35:19-04:00</updated>

		<published>2004-09-02T13:35:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40546#p40546</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40546#p40546"/>
		<title type="html"><![CDATA[&quot;exec&quot; how to handle errors ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40546#p40546"><![CDATA[
Have a look at <a href="http://forum.egghelp.org/viewtopic.php?t=8183" class="postlink">this thread</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Thu Sep 02, 2004 1:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-09-02T13:23:35-04:00</updated>

		<published>2004-09-02T13:23:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40544#p40544</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40544#p40544"/>
		<title type="html"><![CDATA[&quot;exec&quot; how to handle errors ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40544#p40544"><![CDATA[
Hi!<br><br>Ok i try to grep someting from a file using [exec .... ] - If there is a result then it works great. But if the exec fails i get this:<br><blockquote class="uncited"><div> Tcl error [count]: 0<br>child process exited abnormally</div></blockquote> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>in Tcl help is written: <br>(about exec)<blockquote class="uncited"><div>If standard output has not been redirected then the exec command returns the standard output from the last command in the pipeline. If any of the commands in the pipeline exit abnormally or are killed or suspended, then exec will return an error and the error message will include the pipeline's output followed by error messages describing the abnormal terminations; the errorCode variable will contain additional information about the last abnormal termination encountered. If any of the commands writes to its standard error file and that standard error isn't redirected, then exec will return an error; the error message will include the pipeline's standard output, followed by messages about abnormal terminations (if any), followed by the standard error output.</div></blockquote>So now the <strong class="text-strong">Big</strong> Question is: how do I catch the error and prevent the script from crashing?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised"> <br><br>i tried several things but in basic I want this: <br>do [exec ...] <br>if error { do this }<br>else { do that }<br><br>Thx in Advance<p>Statistics: Posted by Guest — Thu Sep 02, 2004 1:23 pm</p><hr />
]]></content>
	</entry>
	</feed>
