Skip to content

Instantly share code, notes, and snippets.

@diaasami
Last active June 1, 2021 13:46
Show Gist options
  • Save diaasami/e0aa32ec8308611f1424ffe5edc8ae9d to your computer and use it in GitHub Desktop.
Save diaasami/e0aa32ec8308611f1424ffe5edc8ae9d to your computer and use it in GitHub Desktop.
Pause process
# Pause process until a key is pressed
kill -STOP $PID; sh -c "read -n 1 -s -r -p 'Press any key to continue'"; kill -CONT $PID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment