From fceb09a592d91e640d0b06fac2cbb661cc1eebe6 Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Sat, 17 Sep 2016 14:49:10 +0200 Subject: [PATCH] pingpong.sh: update to add version in the pipe names --- pingpong/pingpong.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pingpong/pingpong.sh b/pingpong/pingpong.sh index 7d7eb22..96406f1 100755 --- a/pingpong/pingpong.sh +++ b/pingpong/pingpong.sh @@ -21,21 +21,21 @@ fi for pid in `seq 1 ${NB}` do # we make the application pipes - mkfifo ${REP}${pid}-1-in 2>/dev/null - mkfifo ${REP}${pid}-1-out 2>/dev/null + mkfifo ${REP}${pid}-1-1-in 2>/dev/null + mkfifo ${REP}${pid}-1-1-out 2>/dev/null # pid index version - echo "${pid} 1 5" > ${REP}${SERVICE} + echo "${pid} 1 1" > ${REP}${SERVICE} # the purpose is to send something in the pipe - cat /dev/urandom | base64 | head -n 1 > ${REP}${pid}-1-out + cat /dev/urandom | base64 | head -n 1 > ${REP}${pid}-1-1-out # echo "hello world" > ${REP}${pid}-1-out # the the service will answer with our message echo "pid : ${pid}" - cat ${REP}/${pid}-1-in + cat ${REP}/${pid}-1-1-in done - echo "clean rep" - rm ${REP}/*-in - rm ${REP}/*-out \ No newline at end of file +echo "clean rep" +rm ${REP}/*-in +rm ${REP}/*-out