bsh

Class Remote


public class Remote
extends java.lang.Object

Remote executor class. Posts a script from the command line to a BshServlet or embedded interpreter using (respectively) HTTP or the bsh telnet service. Output is printed to stdout and a numeric return value is scraped from the result.

Method Summary

static int
eval(String url, String text)
Evaluate text in the interpreter at url, returning a possible integer return value.
static void
main(args[] )

Method Details

eval

public static int eval(String url,
                       String text)
            throws IOException
Evaluate text in the interpreter at url, returning a possible integer return value.


main

public static void main(args[] )
            throws Exception


B) 2000-2005 pat@pat.net :-)