- 论坛徽章:
- 0
|
disown用途是去掉脚本的所有者的概念,让你不能再用fg来放到前台,不能用jobs看到,不能kill %1来kill掉,和是不是放入后台没有关系。
man bash
disown [-ar] [-h] [jobspec ...]
Without options, each jobspec is removed from the table of active jobs. If the -h option is
given, 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. If no jobspec is present, and neither the -a nor the -r
option is supplied, the current job is used. If no jobspec is supplied, the -a option means to
remove or mark all jobs; the -r option without a jobspec argument restricts operation to running
jobs. The return value is 0 unless a jobspec does not specify a valid job. |
|