named-pipes-services/run_service2.sh
nojhan f74f89734c 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.
2021-08-05 10:23:49 +02:00

10 lines
123 B
Bash
Executable file

./service2 context data out &
PID_SERVICE=$!
echo "Context" > context &
echo "data" > data &
cat out
kill $PID_SERVICE