Archived
3
0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues or pull requests.
libipc-old/pubsub/app/test-gen-new-process.sh

26 lines
319 B
Bash
Raw Normal View History

2016-09-09 21:52:56 +02:00
#!/bin/bash
2016-09-11 02:18:12 +02:00
REP=/tmp/ipc
SERVICE=gen
#SERVICE=pubsub
NB=10
2016-09-11 14:37:41 +02:00
if [ $# -ge 1 ] ; then
SERVICE=$1
shift
fi
if [ $# -ge 1 ] ; then
NB=$1
shift
fi
2016-09-11 02:18:12 +02:00
for i in $(seq 1 ${NB})
2016-09-09 21:52:56 +02:00
do
2016-09-11 02:18:12 +02:00
mkfifo ${REP}/${i}-1-1-in
mkfifo ${REP}/${i}-1-1-out
echo "${i} 1 1 both chan1" > ${REP}/${SERVICE}
2016-09-10 02:54:53 +02:00
sleep 0.1
2016-09-09 21:52:56 +02:00
done