This is a sample demo script for project 3. It is just a sample, and the final one might be different.
-
You should put your source codes under
src/
before runningdemo.sh
- Create a folder naming by your student id.
- Put all source codes and Makefile in the folder created in step1.
src/0856000/
is just an example. You do not need to remove it.
-
./demo.sh
-
demo.sh create two panes in tmux
-
The upper pane
- Execute three np_single_golden automatically.
- The hostname and the port for listening will be displayed.
-
The lower pane
- Compile your source codes.
- Put the executables into the temporary directory
(You can use
cat ~/.npdemo3
to get the path) - Copy CGI programs into
~/public_html/npdemo3/
- Execute your
http_server
- Display some links for demo
-
If the script successfully finishes, you will see the two panes similar to the below screenshot. You can open the links to check the result.
-
- The execution flow and the results in the web page should be similar to the video