Created
October 5, 2014 06:19
-
-
Save ericwoodruff/c8092f537125e4408b34 to your computer and use it in GitHub Desktop.
ssh connection-aware command
This file contains hidden or 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
| ssh localhost "sleep 99 < <(cat; kill -INT 0)" <&1 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://stackoverflow.com/questions/3235180/starting-a-process-over-ssh-using-bash-and-then-killing-it-on-sigint