Pause a running script in Mac terminal and then resume later

Viewed 43437

How can I pause (not stop) a running script from Terminal in OSX, to resume it later from the point it paused?

4 Answers

echo Press any key to continue... read blah

Then just don't do anything with the variable. This is as close to the pause functionality that I've used in DOS batch scripts that I've come across.

Related