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

	<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>2005-04-10T10:44:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-10T10:44:32-04:00</updated>

		<published>2005-04-10T10:44:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47946#p47946</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47946#p47946"/>
		<title type="html"><![CDATA[Testrelesae Winexec - exec workaround for windrops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47946#p47946"><![CDATA[
If you can succesfully use the TCL commands "exec cmd" and "open |cmd r" you definitly do not need this script. However using Eggdrop under Cygwin screws up these 2 commands (even they can be properly used in the tclsh under cygwin) and result in "Tcl error: couldn't duplicate input handle: bad file number ", but I found a workaround.<br><br>I assume the requirements for this are about this:<ul><li>eggdrop:<br>  something around version 1.6+<br>  something around TCL 8.2+<br>  egghttp</li><li>HTTP Server:<br>  php in non-safe mode or access to a bash/sh executable via "system"<br>  .htaccess support for enhanced security</li></ul>Okay, this script or better these scripts have been tested by me under this:<br>eggdrop: v1.6.18+notesfix<br>OS: CYGWIN_NT-5.1 1.5.13<br>Tcl: v8.4.7<br>egghttp: v1.1.0<br><br>Apache: v2.0.52 (Win32)<br>PHP: v4.3.10<br><br>What does it?<br>It queries the exec.php via a HTTP server and gives the stdout from to a specified callback proc. So this all will not just work under Cygwin, it will also not block the bot while the command is executed.<br><br>Please report me any security suggestions and bugs, I'll give it later a try to send it over to an email of windrop.cjb.net, if it can be confirmed to be ready for release.<br><br>Download (v0.1):<br><a href="http://home.arcor.de/dekus/winexec.zip" class="postlink">http://home.arcor.de/dekus/winexec.zip</a><br><a href="http://home.arcor.de/dekus/winexec.tar.bz2" class="postlink">http://home.arcor.de/dekus/winexec.tar.bz2</a><br><br>PS: The issue has been solved with the TCL 8.4.9 release of <a href="http://windrop.sourceforge.net/compiling.html" class="postlink">windrop.sourceforge.net</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Apr 10, 2005 10:44 am</p><hr />
]]></content>
	</entry>
	</feed>
