mirror of
https://github.com/dylanaraps/pure-bash-bible.git
synced 2025-08-30 18:50:11 +02:00
Update README.md
This commit is contained in:
13
README.md
13
README.md
@@ -152,6 +152,7 @@ See something that is incorrectly described, buggy or outright wrong? Open an is
|
||||
* [Get the list of functions in a script](#get-the-list-of-functions-in-a-script)
|
||||
* [Bypass shell aliases](#bypass-shell-aliases)
|
||||
* [Bypass shell functions](#bypass-shell-functions)
|
||||
* [Run a command in the background](#run-a-command-in-the-background)
|
||||
* [AFTERWORD](#afterword)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
@@ -1978,6 +1979,18 @@ ls
|
||||
command ls
|
||||
```
|
||||
|
||||
## Run a command in the background
|
||||
|
||||
This will run the given command and keep it running, even after the terminal or SSH connection is terminated. All output is ignored.
|
||||
|
||||
```sh
|
||||
bkr() {
|
||||
(nohup "$@" &>/dev/null &)
|
||||
}
|
||||
|
||||
bkr ./some_script.sh # some_script.sh is now running in the background
|
||||
```
|
||||
|
||||
<!-- CHAPTER END -->
|
||||
|
||||
# AFTERWORD
|
||||
|
Reference in New Issue
Block a user