Joined: 15 Dec 2002
|Posted: Sun Apr 10, 2005 10:44 am Post subject: Testrelesae Winexec - exec workaround for windrops
|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.
I assume the requirements for this are about this:
something around version 1.6+
something around TCL 8.2+
- HTTP Server:
php in non-safe mode or access to a bash/sh executable via "system"
.htaccess support for enhanced security
Okay, this script or better these scripts have been tested by me under this:
OS: CYGWIN_NT-5.1 1.5.13
Apache: v2.0.52 (Win32)
What does it?
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.
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.
PS: The issue has been solved with the TCL 8.4.9 release of windrop.sourceforge.net
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...