Cleaner examples
- Use ${CXX} instead of explicit clang in the Makefile.
- More explanations.
- Use socat's fork option instead of a bash loop.
- Adds a run_* script for each example.
- Remove the useless "sleep" option in service2.
This commit is contained in:
parent
8bd46d2450
commit
f74f89734c
9 changed files with 89 additions and 26 deletions
11
run_service1.sh
Executable file
11
run_service1.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
./service1 data > out &
|
||||
PID_SERVICE=$!
|
||||
|
||||
echo "Hellow World!" > data &
|
||||
|
||||
cat out &
|
||||
|
||||
echo "exit" > data
|
||||
|
||||
# kill $PID_SERVICE
|
||||
Loading…
Add table
Add a link
Reference in a new issue