summaryrefslogtreecommitdiff
path: root/usr/src/man/man1/disown.1
blob: 74610fd19f69ebb1c76f1edfc92dc2c607da536a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
'\" te
.\" Copyright (c) 1982-2007 AT&T Knowledge Ventures
.\" To view license terms, see http://www.opensource.org/licenses/cpl1.0.txt
.\" Portions Copyright (c) 2007, Sun Microsystems, Inc.
.TH disown 1 "18 Apr 2007" "SunOS 5.11" "User Commands"
.SH NAME
disown \- ksh93 built-in function to disassociate a job with the current shell
.SH SYNOPSIS
.LP
.nf
\fBdisown\fR [\fIjob ...\fR]
.fi

.SH DESCRIPTION
.sp
.LP
The \fBksh93\fR \fBdisown\fR command prevents the current shell from sending a
\fBHUP\fR signal to each of the specified jobs when the current shell
terminates a login session.
.sp
.LP
If \fIjob\fR is omitted, \fBdisown\fR sends the \fBHUP\fR signal to the most
recently started or stopped background job.
.SH OPERANDS
.sp
.LP
The following operands are supported:
.sp
.ne 2
.mk
.na
\fB\fIjob\fR\fR
.ad
.RS 7n
.rt  
Specifies the job or jobs on which disown operates.
.sp
Specify \fIjob\fR as one of the following:
.sp
.ne 2
.mk
.na
\fB\fInumber\fR\fR
.ad
.RS 12n
.rt  
Refers to a process ID.
.RE

.sp
.ne 2
.mk
.na
\fB\fB-\fR\fInumber\fR\fR
.ad
.RS 12n
.rt  
Refers to a process group ID.
.RE

.sp
.ne 2
.mk
.na
\fB\fB%\fR\fInumber\fR\fR
.ad
.RS 12n
.rt  
Refers to a job number.
.RE

.sp
.ne 2
.mk
.na
\fB\fB%\fR\fIstring\fR\fR
.ad
.RS 12n
.rt  
Refers to a job whose name begins with \fIstring\fR.
.RE

.sp
.ne 2
.mk
.na
\fB\fB%?\fR\fIstring\fR\fR
.ad
.RS 12n
.rt  
Refers to a job whose name contains \fIstring\fR.
.RE

.sp
.ne 2
.mk
.na
\fB\fB%+\fR or \fB%%\fR\fR
.ad
.RS 12n
.rt  
Refers to the current job.
.RE

.sp
.ne 2
.mk
.na
\fB\fB%-\fR\fR
.ad
.RS 12n
.rt  
Refers to the previous job.
.RE

.RE

.SH EXIT STATUS
.sp
.ne 2
.mk
.na
\fB\fB0\fR\fR
.ad
.RS 6n
.rt  
Successful completion.
.RE

.sp
.ne 2
.mk
.na
\fB\fB>0\fR\fR
.ad
.RS 6n
.rt  
One or more specified jobs does not exist.
.RE

.SH EXAMPLES
.LP
\fBExample 1 \fRDisowning a Job
.sp
.LP
The following example disowns job 1:

.sp
.in +2
.nf
example% disown %1
.fi
.in -2
.sp

.SH AUTHORS
.sp
.LP
David Korn, \fBdgk@research.att.com\fR
.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp

.sp
.TS
tab() box;
cw(2.75i) |cw(2.75i) 
lw(2.75i) |lw(2.75i) 
.
ATTRIBUTE TYPEATTRIBUTE VALUE
_
Interface StabilityUncommitted
.TE

.SH SEE ALSO
.sp
.LP
\fBbg\fR(1), \fBjobs\fR(1), \fBksh93\fR(1), \fBwait\fR(1), \fBattributes\fR(5)