SMR_TP_reactive/scripts/wait_parallel.sh
2019-12-08 17:01:53 +01:00

15 lines
176 B
Bash
Executable File

echo "Testing..."
SLEEPMAX=1
for var in $@
do
sleep $var &
if (( $var > $SLEEPMAX ));
then
SLEEPMAX=$var
fi
done
sleep "$SLEEPMAX"
echo "Done."