2014-03-24 10:17:15 +00:00
|
|
|
# nohup
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Allows for a process to live when the terminal gets killed.
|
2021-04-01 16:54:26 +01:00
|
|
|
> More information: <https://www.gnu.org/software/coreutils/nohup>.
|
2014-03-24 10:17:15 +00:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Run a process that can live beyond the terminal:
|
2014-03-24 10:17:15 +00:00
|
|
|
|
2021-10-19 12:06:42 +01:00
|
|
|
`nohup {{command}} {{command_arguments}}`
|
|
|
|
|
2022-10-26 05:51:09 +01:00
|
|
|
- Launch `nohup` in background mode:
|
2021-10-19 12:06:42 +01:00
|
|
|
|
|
|
|
`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}} &`
|