Skip to content

Instantly share code, notes, and snippets.

@stenno
Created May 1, 2019 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stenno/eef538f74dd367c93deb62f828128d8e to your computer and use it in GitHub Desktop.
Save stenno/eef538f74dd367c93deb62f828128d8e to your computer and use it in GitHub Desktop.
ssh trap?
trap "echo 'hello'; exit" 1
ssh nethack@eu.hardfought.org
#other shell
kill -1 12345
# 'hello' is not printed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment