(1) Go to the directory: /proj/demsys/com3360/f97/rixin/project (2) Set your enviroment variable CLASSPATH CLASSPATH = ./gen:.:/proj/demsys/demjava/demjava.jar (3) Run the program: java Main After above three steps, your will see a java window. This window has a menu bar which has two menus "File" and "Command", and two text areas. In the "File" menu, you can create, open or save a script file. The script is just a plain text file. In the "Command" menu, you can run a script command or stop the running of current command. If you waint to run a script command, you can click the "RunScript" menu item in the "Command" menu. Before you run a command, you have to use your mouse to select the command you want to run from the bottom text area which has white background color. Each time you can only run one command. If you want to stop a currently running comand, you can click the "stop" menu item in the "Command" menu. The top text area is used for displaying the data which is received by running the command you seleced. You can not edit the content of this text area. The bottom text area is used for editting script. You can type in your commands and save thems for later uses. Of course, you have to save the file in a directory that you have the write permision. You also can load a previous saved script into this text area.Before running the command, do not forget to select the command first by draging your mouse. If you have any question in using this program, please do not hesitate to contact us: emai: rixin@ccs.neu.edu or xren@ccs.neu.edu P.S: There is file named "test.script" in directory: /proj/demsys/com3360/f97/rixin/project There are 10 test cases in this script file. The following is the descripting of these examples. Test 1: url("http://www.neu.edu/") This command simply attempts to fetch the html file from www.neu.edu Test 2: url("http://www.ccs.neu.edu") This command simply attempts to fetch the html file from www.ccs.neu.edu Test 3: get("http://www.altavista.digital.com/cgi-bin/query", pg="q" what="web" q="java") This command looks up the word "java" on the AltaVista search engine using HTTP GET method. Test 4: post("http://www.dbc.com/cgi-bin/htx.exe/squote", source="dbcc" TICKER="ticker" format="decimals" tables="table") This command looks up stock quotes on www.dbc.com using HTTP POST method. Test 5: timeout(10,stall) This command just wait 10 seconds Test 6: limit(1,1,url("http://www.cmu.edu")) This command gives the url connection 1 second start-time and force the connection to fail if the rate ever drops below 1 KB/Second. Test 7: limit(1,10,url("http://www.cmu.edu")) This command is just like the above example except it require a higher rate 10 KB/Second. Test 8: repeat((url("http://www.cs.cmu.edu/~rowan")?timeout(10,stall))) This command repeatedly tries to fetch the URL, but waits 10 seconds between attempts. Test 9: (url("http://www.cs.umd.edu/~pugh/popl97/") | url("http://www.diku.dk/popl97/")) This command atempts to fetch the POPL'97 conference page from one of two alternate sites. Both sites are attempted concurrently, and the result is that from whichever site successfully completes first. Test 10: (repeat(limit(1,1,url("http://www7.conf.au/"))) | (timeout(20,stall) ? url("http://www.cs.cmu.edu/~rowan/failed.txt"))) This command attempts to fetch the WWW7 conference page from Australia. If the fetch fails or the rate ever drops below 1 KB/second, than it starts again. If the page is not successfully fetched withis 20 seconds, then a site know to be easily reachable is used to retrieve a failure message.