Using a bash only script, how can you provide a bash progress indicator?
For example, when I run a command from bash – while that command is executing – let the user know that something is still happening.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In this example using SCP, I’m demonstrating how to grab the process id (pid) and then do something while that process is running.
This displays a simple spinnng icon.
William Pursell’s solution