Go to main content

man pages section 1: User Commands

Exit Print View

Updated: July 2017
 
 

disown(1)

Name

disown - ksh built-in function to disassociate a job with the current shell

Synopsis

disown [job ...]

Description

The ksh disown command prevents the current shell from sending a HUP signal to each of the specified jobs when the current shell terminates a login session.

If job is omitted, disown sends the HUP signal to the most recently started or stopped background job.

Operands

The following operands are supported:

job

Specifies the job or jobs on which disown operates.

Specify job as one of the following:

number

Refers to a process ID.

-number

Refers to a process group ID.

%number

Refers to a job number.

%string

Refers to a job whose name begins with string.

%?string

Refers to a job whose name contains string.

%+ or %%

Refers to the current job.

%-

Refers to the previous job.

Exit Status

0

Successful completion.

>0

One or more specified jobs does not exist.

Examples

Example 1 Disowning a Job

The following example disowns job 1:


example% disown %1

Authors

David Korn, dgk@research.att.com

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os
Interface Stability
Uncommitted

See Also

bg(1), jobs(1), ksh(1), wait(1), attributes(5)