progress bar

i am trying to write a script where in it will connect to remote servers and execute remote scripts to fetch some data and ftp it back to a main server. i would like to add a script where it will show some sort of status bar until such time that the expected files have been recieved.

something like:

Getting information on remote servers .................. done!

the "." will not stop until the script find those files (more than 1 file) and print the word "done!" when all of them have been received.

can someone give me an idea?

thanks.

:stuck_out_tongue:

sorry...

i just got the answer using...

until loop.

sorry for the inconvinience

:wink:

Could you post your answer for the less enlightened or program challenged??? :smiley:

We are trying to create a DB here for users to search for answers.

Thanks bunches!! :cool:

==============================================
:
#

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,