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

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

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