![]() |
Running The Script |
Run As Stand Alone
There are two different ways to do this. The first way is to specify
the script file name as a command line argument to VScript interpreter.
Ex:-
java VScript test.txt
The second way is to edit the config.dat file and specify the script
as
vscript=test.txt
Run As Applet
To run as applet specify the name of the script to interpret as an applet
parameter.
Ex:-
<APPLET
code = "VApplet.class"
width = "100"
height = "100"
vscript = "test.txt"
>
</APPLET>
Enabling Remote Messaging
VScript allows messages to be send across different interpreters running
on different machines. In order to do this the following
steps have to be carried out.
1,VServer that comes along with the interpreter has to be run.
2,Give each interpreter a unique name using the command line parameter or applet parameter.
3,Specify the IP address of the server to each interpreter using command line parameter or applet parameter.
ex:-
java VScript test.txt vsr1 192.168.17.10
Here text.txt is the script file, vsr1 is name given to interpreter and 192.168.17.10 is IP address of server.
This information can be provided in the config.dat file as
vsrname=vsr1
server=192.168.17.10
vscript=test.txt
For Applets
The information can be provided as applet parameter as follows.
<APPLET
code = "VApplet.class"
width = "700"
height = "500"
vscript = "test.txt"
server = "129.168.17.10"
vsrname = "vsr1"
>
</APPLET>