I am looking for a solution to the following problem: I have written an interactive command-line application. It is a scripting language, to be precise. Because I do not want anybody to have to go through the hassle of downloading the JAR file (it is written in Java) and possibly having to install the JRE on their machine, I would like to host the language. The whole language works in a sandbox and thus there are no security issues. Basically what I need is a way for a user to enter a script into a text box or upload one from their computer, then the server would run the language interpreter *interactively*. I do not want the user to have to download anything, but I don't mind what technology you use on the server (feel free to write a service if that is required, use PHP, Perl, Java, whatever).
## Deliverables
Source code to anything required, with installation instructions. I must agree to any third-party components used. If I do not agree, don't use them. Also let me know which technology you will use.
* * *This broadcast message was sent to all bidders on Saturday Apr 21, 2007 1:51:57 PM:
Just to clarify:
I am talking about an interactive application, where at some point the application *may* ask for input, but this is optional. Since your code should be flexible, it should even work with the following Perl script:
#!/usr/bin/env perl -w
print "foo";
if (rand() > 0.5)
{
$x = [STDIN];
}
print "bar";
if (rand() > 0.5)
{
$y = [STDIN];
}
I would not mind changing the application a little bit so that it prints something like "output|" in front of all output lines, and "input|" in front of all input prompts, although a more elegant solution is of course better.
Also note that all work will be considered "work made for hire", thus I have all copyright, etc.
I do not want obfuscated code delivered - plain source code, and if deemed necessary, compilation instructions + compiled deliverable.
## Platform
PHP; MySQL; Perl; Python; Java; C (C++ possible, but not preferred); anything else I agree on. Must run solely in the client's web browser.