Answers for "shell script pause command"

3

Bash add pause prompt in a shell script with bash pause command

read -p "Press [Enter] key to start backup..."
read -p "Press any key to resume ..."
## Bash add pause prompt for 5 seconds ##
read -t 5 -p "I am going to wait for 5 seconds only ..."
Posted by: Guest on December-24-2020
1

pause bash script

function pause(){
 read -s -n 1 -p "Press any key to continue . . ."
 echo ""
}
 
## Pause it ##
pause
 
## rest of script below
Posted by: Guest on August-11-2020

Code answers related to "shell script pause command"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language