I'm new to shell scripts and i use the below code to run a spring boot, however i need to have a progress bar to show the progress of starting the application.
I have tried with echo "waiting to start" but need to have a progress bar to show.
cd /var/develop/eureka-discovery-services/target
pwd
java -jar eureka-discovery-services.jar &
while ! nc -z localhost 5001 ; do
echo "Waiting to start"
sleep 2
done
cd /cd /var/develop/api-services/target
pwd
java -jar api-services.jar &
while ! nc -z localhost 6001 ; do
echo "Waiting to start"
sleep 2
done
echo "All services started Successfully !!!"