Created
May 1, 2019 09:45
-
-
Save stenno/eef538f74dd367c93deb62f828128d8e to your computer and use it in GitHub Desktop.
ssh trap?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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