Created
December 31, 2014 00:53
-
-
Save CoolOppo/fa6083de534ea8f2e43b to your computer and use it in GitHub Desktop.
Backgrounds a command, disowns it, and hides all of its output
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
# Background function to run any given command in the background and | |
# disown it from the shell, hiding ALL output: | |
bkr () | |
{ | |
(nohup "$@" &>/dev/null &) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment