-
-
Save yazinsai/1fe9ecda68faa73488ff58b922cd4386 to your computer and use it in GitHub Desktop.
Persistently run a process over SSH even if disconnected
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
#!/bin/sh | |
if test -t 1; then exec 1>/dev/null | |
fi | |
if test -t 2; then exec 2>/dev/null | |
fi | |
"$@" & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment