My task is to implement Distance Vector Multicast Routing Protocol (DVMRP) using files (No sockets or threads). I will have three java programs

1. Host.java
2. Router.java
3. Controller.java

The procedure for testing is:

1. Run the test1.sh script file on a new terminal window

test1.sh looks like:

```
rm -f lan?  hout?  hin?
rm -f rout?
router 0 0 1 &
router 1 1 2 &
router 2 2 3 &
router 3 3 0 &
controller host router 0 1 2 3 lan 0 1 2 3&

```

Here, the line containing

```
router 0 0 1 &

```

means that a process is created from the executable file "router" (basically Router.java) and runs it in the background with input 0 0 1, & is I think to say that its in bash mode.

Similarly the next line

```
router 1 1 2 &

```

means that another process is created from the executable file "router" (basically Router.java) and runs in the background with input 1 1 2.

Similarly, the line:

```
controller ...

```

means that another process is created from the executable file "controller" (basically Controller.java) and runs in the background with the corresponding input.

How to do this? Sorry for earlier confusion :)