#!/bin/sh
: ${DIALOG=dialog}

PCT=10
PCT2=0
(
while test $PCT -le 100
do
echo "XXX"
echo $PCT
echo $PCT2
echo "The new message\n\
$PCT percent of $PCT2 percent"
echo "XXX"
PCT=`expr $PCT + 10`
PCT2=`expr $PCT2 + 2`
sleep 1
done
) |

$DIALOG --title " GAUGE " --gauge "Hi, this is a gauge widget" 7 70 0 1 0
