From af038c76b26ccf54844c681563b0006af0ec9a59 Mon Sep 17 00:00:00 2001 From: Antoine Amara Date: Tue, 19 Oct 2021 13:06:42 +0200 Subject: [PATCH] nohup: add background and output to file examples (#7085) --- pages/common/nohup.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pages/common/nohup.md b/pages/common/nohup.md index f04ac11c2..f9369b90c 100644 --- a/pages/common/nohup.md +++ b/pages/common/nohup.md @@ -5,4 +5,16 @@ - Run a process that can live beyond the terminal: -`nohup {{command}} {{command_options}}` +`nohup {{command}} {{command_arguments}}` + +- Launch nohup in background mode: + +`nohup {{command}} {{command_arguments}} &` + +- Run a shell script that can live beyond the terminal: + +`nohup {{path/to/script.sh}} &` + +- Run a process and write the output to a specific file: + +`nohup {{command}} {{command_arguments}} > {{path/to/output_file}} &`