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.
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