Your project seems quite appropriate for this: I need a couple of extra Unix commands (lsof, netstat, ps) on top of yours, but usable as URLs such that: - They can be executed as HTTP links, for example: http://user@host/netstat?arg1=val1&arg2=val2 - They return a XML document which can for example be easily integrated into a HTML page.
The target, as you might have guessed, is to run Unix commands from a browser, mostly for diagnostic purpose, and to nicely display the result. Apache already gives such a feature by allowing to view the content of a directory in a web page, but this is hard-coded and it sounds possible to go much further with xmlsh.
As far as I have understood your plan, what is just needed (on top of the new commands) is to wrap xmlsh commands into a generic CGI script, transforming the HTTP arguments into command-line args.
Hi David,
ReplyDeleteYour project seems quite appropriate for this: I need a couple of extra Unix commands (lsof, netstat, ps) on top of yours, but usable as URLs such that:
- They can be executed as HTTP links, for example: http://user@host/netstat?arg1=val1&arg2=val2
- They return a XML document which can for example be easily integrated into a HTML page.
The target, as you might have guessed, is to run Unix commands from a browser, mostly for diagnostic purpose, and to nicely display the result. Apache already gives such a feature by allowing to view the content of a directory in a web page, but this is hard-coded and it sounds possible to go much further with xmlsh.
As far as I have understood your plan, what is just needed (on top of the new commands) is to wrap xmlsh commands into a generic CGI script, transforming the HTTP arguments into command-line args.
What do you think ?
Thanks in advance.
RC
Sorry for taking so long to approve this comment, I wasnt getting notified.
ReplyDeleteLook at the XMLSH Servlet support, it does exactly what your asking.
http://www.xmlsh.org/EmbeddingServlet