( String args[] )
| 39 | public class Remote |
| 40 | { |
| 41 | public static void main( String args[] ) |
| 42 | throws Exception |
| 43 | { |
| 44 | if ( args.length < 2 ) { |
| 45 | System.out.println( |
| 46 | "usage: Remote URL(http|bsh) file [ file ] ... "); |
| 47 | System.exit(1); |
| 48 | } |
| 49 | String url = args[0]; |
| 50 | String text = getFile(args[1]); |
| 51 | int ret = eval( url, text ); |
| 52 | System.exit( ret ); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | Evaluate text in the interpreter at url, returning a possible integer |