Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 483d2caff0ddcf268a7280bcead46133 > files > 71

cdialog-1.1-1.20080316.1mdv2009.0.i586.rpm

#!/bin/sh
# $Id: gauge2,v 1.3 2003/10/09 22:15:56 tom Exp $
# The original dialog program assumed the first line after the first "XXX"
# was a percentage value (compare with "gauge" script).
: ${DIALOG=dialog}

(echo "10" ; sleep 2 ; 

echo "XXX"; 
echo "The new"
echo "\\n"
echo "message";
echo "XXX";
echo "20"
sleep 2; 

echo "75" ; sleep 1
echo "100") | \

$DIALOG --title "GAUGE" --gauge "Hi, this is a gauge widget" 10 40 0

if [ "$?" = 255 ] ; then
	echo ""
	echo "Box closed !"
fi