#!/bin/bash t=$$ temps=$(($t%10+1)) echo "[`date +%M:%S`](client n°$3)" sleep $temps semV $2 echo "[`date +%M:%S`](client n°$3)" semP $1