Skip to content
Snippets Groups Projects
Commit 210d2d13 authored by Mai Pham's avatar Mai Pham
Browse files

Update readme

parent 18337d14
Branches test
No related tags found
No related merge requests found
......@@ -8,7 +8,9 @@
1. ssh to VM: ```ssh <NETID>@fa22-cs425-NNXX.cs.illinois.edu```
2. ```git clone https://gitlab.engr.illinois.edu/trangtd2/cs425_mp1.git```
3. cd to project dir
4. In order to run server on single machine/VM, run the jar file:
4. The program is compiled to two jar files: ```out/artifacts/grep_server_jar/grep.jar```(server execution jar file)
and ```out/artifacts/grep_client_jar/grep.jar```(client execution jar file) <br>
In order to run server on single machine/VM, run the jar file:
```
java -jar out/artifacts/grep_server_jar/grep.jar -p 5000
```
......@@ -24,4 +26,11 @@ java -jar out/artifacts/grep_client_jar/grep.jar -cf <configFile> --command "gre
### Unit test
User run unit test in ```GrepTest.java```
However, this test is test for 10 VMs with config file is in ```files/config.txt``` and actual test result is in ```files/test_result```
\ No newline at end of file
This test is test for 10 VMs with config file is in ```files/config.txt```, therefore it is required to keep all 10
servers running and actual test result is in ```files/test_result```
### Note
1. ``` files/bash/send_log.sh```: use to push demo data (provided demo data) to all 10 VMs
2. ```files/bash/send_jars.sh```: use to send all client execution jar and server execution jar to all 10 VMs
3. ```files/bash/run_jars.sh```: use to run all servers from local machine
4. ```files/bash/kill_process.sh```: use to kill server processes running in all 10 VMs
\ No newline at end of file
localhost 5000 /home/maipham/uiuc/cs425/mp1/grep/files/generated_log/test.log
\ No newline at end of file
localhost 5000 ./files/generated_log/test.log
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment