The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: progress bar
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 11-26-2002
inquirer
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
==============================================
:
#

dot_stat() {

let count=0

until test -s "$expect_file"
do
echo ".\c"

let count=$count+1

if test $count -eq 30
then
echo
echo
echo "Some servers you are trying to fetch data is not responding!"
echo
echo "Try again later!"
echo
exit 1
fi

sleep 1
done

echo " done!" ;

}

echo "Fetching data "
rexec remote_server -l user command
dot_stat
echo
==============================================

Thanks,