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

	<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-01-16T14:27:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-16T14:27:59-04:00</updated>

		<published>2006-01-16T14:27:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59457#p59457</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59457#p59457"/>
		<title type="html"><![CDATA[Load perl scripts to eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59457#p59457"><![CDATA[
using scripts written in languages other than Tcl (shell, Perl, whatever) by simply piping input/output seems kind of pointless to me (unless you need to do exactly that, i.e. you want to use already made script which is not related to eggdrop, and you are interested in input/only only, not in control)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Jan 16, 2006 2:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-01-16T11:10:38-04:00</updated>

		<published>2006-01-16T11:10:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59444#p59444</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59444#p59444"/>
		<title type="html"><![CDATA[Load perl scripts to eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59444#p59444"><![CDATA[
there is only 1 way I would advise someone to use perl scripts in eggdrop:<br>make a TCL script, open a pipe to perl and just read the output and throw it in some vars, in a channel or simply eval it if the script returns TCL script.<br><br>This may look like something like that then:<br><div class="codebox"><p>Code: </p><pre><code>proc getrostatus:t {min h d m y} {set sock [open {|perl euro.pl} r]fileevent $sock readable [list getrostatus:cb $sock]return 0}proc getrostatus:cb {sock} {global euroset status [read $sock]if {[catch {close $sock} err]} {putlog $err} else {array set euro $status}return 0}</code></pre></div>Well, you still need to know some TCL, but you are nolonger bound to restrictions that might apply to TCL. But note that fileevent triggers only about twice a second, so you usually wont get the callback triggered within less than 500ms.<br>For exeption handling I believe you need to catch the close statement like mentioned above.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Jan 16, 2006 11:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-15T17:16:24-04:00</updated>

		<published>2006-01-15T17:16:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59415#p59415</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59415#p59415"/>
		<title type="html"><![CDATA[Load perl scripts to eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59415#p59415"><![CDATA[
I wonder if it's of any use... did you test it? I know you're perl guy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Jan 15, 2006 5:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2006-01-15T16:15:03-04:00</updated>

		<published>2006-01-15T16:15:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59413#p59413</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59413#p59413"/>
		<title type="html"><![CDATA[Load perl scripts to eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59413#p59413"><![CDATA[
Loading a PERL scripts is not possible with Eggdrop 1.6.x. Proper module to support that scripting language exists in 1.9 version.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Sun Jan 15, 2006 4:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honken]]></name></author>
		<updated>2006-01-15T15:46:21-04:00</updated>

		<published>2006-01-15T15:46:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59411#p59411</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59411#p59411"/>
		<title type="html"><![CDATA[Load perl scripts to eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59411#p59411"><![CDATA[
Hi there.<br><br>Been trying now to find out if it's posible to load a perl script to eggdrop.<br>But when i try to rehash the bot it just died.<br>With error:<blockquote class="uncited"><div>[19:22] Writing user file...<br>[19:22] Writing channel file...<br>[19:22] Rehashing ...<br>[19:22] Listening at telnet port 3434 (bots).<br>[19:22] Listening at telnet port 4343 (users).<br>[19:22] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).<br>[19:22] use '.help userinfo' for commands.<br>[19:22] Tcl error in file 'eggdrop.conf':<br>[19:22] invalid command name "use"<br>[19:31]     while executing<br>[19:31] "use threads"<br>[19:31] (file "/home/bot/mother_mod.pl" line 5)<br>[19:31] invoked from within<br>[19:31] "source /home/bot/mother_mod.pl"<br>[19:31] (file "eggdrop.conf" line 1346)<br>[19:22] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)</div></blockquote>After this i was like "aww need perl modules" and did this in my terminal as root.<br><blockquote class="uncited"><div>perl -MCPAN -e "install Bundle::CPAN";</div></blockquote>And after this i was sure it would work but you know what? id didn't.<br>So now im after some help to see if i can get this to work.<br><br><strong class="text-strong"><br>First part in the mother_mod.pl script that ends it all.<br></strong><br><blockquote class="uncited"><div>#!/usr/bin/perl -w<br><br>#use strict;<br>use threads;<br>use Thread::Queue;<br>use HTML::TableExtract;<br>use lib qw( ..);<br>use LWP::UserAgent;<br>use HTTP::Cookies;<br>use Net::Telnet;</div></blockquote>Anyone with any good ideas?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6287">honken</a> — Sun Jan 15, 2006 3:46 pm</p><hr />
]]></content>
	</entry>
	</feed>
