2018-07-17 20:29:16 +01:00
|
|
|
# disown
|
|
|
|
|
|
|
|
> Allow sub-processes to live beyond the shell that they are attached to.
|
|
|
|
> See also the `jobs` command.
|
2021-07-09 15:45:55 +01:00
|
|
|
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-disown>.
|
2018-07-17 20:29:16 +01:00
|
|
|
|
|
|
|
- Disown the current job:
|
|
|
|
|
|
|
|
`disown`
|
|
|
|
|
|
|
|
- Disown a specific job:
|
|
|
|
|
|
|
|
`disown %{{job_number}}`
|
|
|
|
|
|
|
|
- Disown all jobs:
|
|
|
|
|
|
|
|
`disown -a`
|
2019-05-14 18:17:37 +01:00
|
|
|
|
|
|
|
- Keep job (do not disown it), but mark it so that no future SIGHUP is received on shell exit:
|
|
|
|
|
|
|
|
`disown -h %{{job_number}}`
|