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

	<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>2006-06-13T06:48:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-06-13T06:48:11-04:00</updated>

		<published>2006-06-13T06:48:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63974#p63974</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63974#p63974"/>
		<title type="html"><![CDATA[egghttp please help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63974#p63974"><![CDATA[
then maybe your routing table is improper? Just beeing it your server doesnt exclude the reason of failure to be an iptables/ipchain setting... or simply refered as "firewall and routing rules". All you can do is making sure that the IP it tries to connect is valid. Try to set debug code to show you to what it actually tries to connect and verify it can connect to it outside of the bot, because only then it would be an issue with eggdrop ^.^.<br>Maybe socket binds to the wrong interface(s), try using the -myaddr option.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Tue Jun 13, 2006 6:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NTHosts]]></name></author>
		<updated>2006-06-10T16:36:08-04:00</updated>

		<published>2006-06-10T16:36:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63885#p63885</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63885#p63885"/>
		<title type="html"><![CDATA[...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63885#p63885"><![CDATA[
Nope its all run from my own server, so no firewall <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6839">NTHosts</a> — Sat Jun 10, 2006 4:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-06-09T20:23:45-04:00</updated>

		<published>2006-06-09T20:23:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63866#p63866</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63866#p63866"/>
		<title type="html"><![CDATA[egghttp please help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63866#p63866"><![CDATA[
verify you can connect to that host from your shell. Maybe its firewalled.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Jun 09, 2006 8:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NTHosts]]></name></author>
		<updated>2006-06-09T16:18:05-04:00</updated>

		<published>2006-06-09T16:18:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63864#p63864</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63864#p63864"/>
		<title type="html"><![CDATA[...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63864#p63864"><![CDATA[
Ok I tried scrapping using egghttp and use sockets.. I came up with this...<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- !dj curdjset server "lynxfm.com"set port "9004"set pass "demo"proc curdj {nick host handle chan text} {   global server port pass if {[catch {set sock [socket $server $port] } sockerror]} { putlog "error: $sockerror" return 0 } else {puts $sock "GET /admin.cgi?pass=$pass&amp;mode=viewxml&amp;page=0 HTTP/1.0"puts $sock "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)"puts $sock "Host: $server"puts $sock "Connection: close"puts $sock ""flush $sock while {[eof $sock] != 1} {regexp { &lt;SERVERTITLE&gt;(.*)&lt;/SERVERTITLE&gt; } $body - dj} putquick "PRIVMSG $channel :\0032The current DJ is: \0034 $dj"close $sock }}</code></pre></div>But it cant open the connection for some reason <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>Nick .set errorInfo<br><br>TCLTestBot [15:17] #Nick# set errorInfo<br>TCLTestBot Currently: couldn't open socket: host is unreachable<br>TCLTestBot Currently:     while executing<br>TCLTestBot Currently: "socket $server $port"<br><br>My head hurts lol.. any help plz ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6839">NTHosts</a> — Fri Jun 09, 2006 4:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NTHosts]]></name></author>
		<updated>2006-06-09T11:11:43-04:00</updated>

		<published>2006-06-09T11:11:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63856#p63856</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63856#p63856"/>
		<title type="html"><![CDATA[egghttp please help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63856#p63856"><![CDATA[
Ok I have written this...<br><div class="codebox"><p>Code: </p><pre><code>set url "$ip:$port/admin.cgi?mode=viewxml"set djtrigger "!dj"set ip "lynxfm.com"set port "9004"set pass "whatever"set channel "#botchan"if {![info exists egghttp(version)]} {  putlog "egghttp.tcl was NOT successfully loaded."  putlog "shoutcast.tcl has not been loaded as a result."} else {  proc current_dj {sock} {    global channel    set headers [egghttp:headers $sock]    set body [egghttp:data $sock]    regexp { &lt;SERVERTITLE&gt;(.*)&lt;/SERVERTITLE&gt; } $body - dj    putquick "PRIVMSG $channel :\0032The current DJ is: \0034 $dj"  }  bind pub -|* $djtrigger top:djtrigger  proc top:djtrigger {nick host hand chan text} {    global url    set sock [egghttp:geturl $url current_dj]    return 1  }}</code></pre></div>But.. I dont know how to log into the page to parse the onfo I need so not even sure if the <br><br>set url "whatitsaysupthere"<br><br>will work with the <br>set ip "bleah"<br>set port "bleahsomemore"<br><br>as you can see i have... set pass "whatever"<br>But how can I get egghttp use that in the http login form with also the username admin.<br><br>I have looked through the egghttp docs but dont see anything that tells you about login forms. <br><br>Any suggestions please ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6839">NTHosts</a> — Fri Jun 09, 2006 11:11 am</p><hr />
]]></content>
	</entry>
	</feed>
