Unbind a job from the current login session. Each jobspec is removed from the table of active jobs.

      disown [-ar] [-h] [jobspec ...]

   -h   Each jobspec is not removed from the table, but is marked so that SIGHUP is not
        sent to the job if the shell receives a SIGHUP.
   -r   Without a jobspec argument, will restrict operation to running jobs.

   -a   Without a jobspec argument, will remove or mark all jobs

 jobspec The job ID of a background job

If no jobspec is present, and neither the -a nor the -r option is supplied, the current job is used.

The return value is 0 unless a jobspec does not specify a valid job.

disown is a bash built in command.

“We must learn not to disassociate the airy flower from the earthy root, for the flower that is cut off from its root fades, and its seeds are barren, whereas the root, secure in mother earth, can produce flower after flower and bring their fruit to maturity” ~ Kabbalah

Related macOS commands

sched - Schedule a command to run at a later time.
crontab - Schedule a command to run at a later date/time.
jobs - List active jobs.
screen - Multiplex terminal, run remote shells via ssh.

Copyright © 1999-2024 SS64.com
Some rights reserved