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

	<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-04-10T14:16:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-04-10T14:16:12-04:00</updated>

		<published>2003-04-10T14:16:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18879#p18879</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18879#p18879"/>
		<title type="html"><![CDATA[Lynx problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18879#p18879"><![CDATA[
If all you want to do is get rid of the tcl error, add a catch statement:<br><div class="codebox"><p>Code: </p><pre><code>proc radio:dataget { hand idx text } {    global lynx radio    set rfs "[open $radio(file) w]"    if {[catch {exec $lynx -preparsed -dump http://www.xxxx.com:$radio(port)} result]} {        putlog "error"    } else {        puts $rfs $result    }    close $rfs    return 0}</code></pre></div>Maybe instead of putlog "error", you want to put a default message into that file, indicating that the site could not be contacted.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Apr 10, 2003 2:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cerberus_gr]]></name></author>
		<updated>2003-04-10T11:47:09-04:00</updated>

		<published>2003-04-10T11:47:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18875#p18875</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18875#p18875"/>
		<title type="html"><![CDATA[Lynx problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18875#p18875"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br>I don't know this package. could you help me a little more?<br><br>My code is:<div class="codebox"><p>Code: </p><pre><code>proc radio:dataget { hand idx text } {    global lynx radio    set rfs "[open $radio(file) w]"    puts $rfs [exec $lynx -preparsed -dump http://www.xxxx.com:$radio(port)]    close $rfs    return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2661">cerberus_gr</a> — Thu Apr 10, 2003 11:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-04-10T11:32:04-04:00</updated>

		<published>2003-04-10T11:32:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18872#p18872</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18872#p18872"/>
		<title type="html"><![CDATA[Lynx problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18872#p18872"><![CDATA[
Use the likes of the Tcl HTTP package.<br><br>You have full control over how errors return then.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Apr 10, 2003 11:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cerberus_gr]]></name></author>
		<updated>2003-04-10T11:29:29-04:00</updated>

		<published>2003-04-10T11:29:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18871#p18871</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18871#p18871"/>
		<title type="html"><![CDATA[Lynx problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18871#p18871"><![CDATA[
Hello,<br><br>i have this command in my code: exec $lynx -preparsed -dump $radio(host)<br><br>if $radio(host) is down, lynx returns an error:<br>[18:26] Tcl error [radio:dataget]: <br>Looking up <a href="http://www.xxxx.com" class="postlink">www.xxxx.com</a><br>Unable to locate remote host <a href="http://www.xxxx.com" class="postlink">www.xxxx.com</a>.<br>Alert!: Unable to connect to remote host.<br>lynx: Can't access startfile <a href="http://www.xxxx.com" class="postlink">http://www.xxxx.com</a><br><br>how could I check if the host is up or not, so if it's down this procedure do not return a error?<br><br>thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2661">cerberus_gr</a> — Thu Apr 10, 2003 11:29 am</p><hr />
]]></content>
	</entry>
	</feed>
