Wednesday, July 25, 2012

Bash Pause

How do you pause a bash script, either to prompt a keypress or to actually get some input into the program? Easy peasy, use the read -p command!

Such as:
read -p "Press [Enter] key to start backup..."

Thanks!:
http://www.cyberciti.biz/tips/linux-unix-pause-command.html

No comments:

Post a Comment