2018-07-17 20:29:16 +01:00
|
|
|
# disown
|
|
|
|
|
|
|
|
> Allow sub-processes to live beyond the shell that they are attached to.
|
2025-06-14 16:02:15 +00:00
|
|
|
> See also: `jobs` for finding job numbers.
|
2021-07-09 16:45:55 +02: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`
|
|
|
|
|
2025-06-14 16:02:15 +00:00
|
|
|
- Disown a specific job (run `jobs` to find the job number):
|
2018-07-17 20:29:16 +01:00
|
|
|
|
|
|
|
`disown %{{job_number}}`
|
|
|
|
|
2025-06-14 16:02:15 +00:00
|
|
|
- Disown all jobs (Bash only):
|
2018-07-17 20:29:16 +01:00
|
|
|
|
|
|
|
`disown -a`
|
2019-05-14 19:17:37 +02:00
|
|
|
|
2025-06-14 16:02:15 +00:00
|
|
|
- Keep job (do not disown it), but mark it so that no future SIGHUP is received on shell exit (Bash only):
|
2019-05-14 19:17:37 +02:00
|
|
|
|
|
|
|
`disown -h %{{job_number}}`
|