No Bash, você pode disown
o processo .
disown [-ar] [-h] [jobspec … ]
Each
jobspec
is removed from the table of active jobs.
-h
SIGHUP is not sent to the job if the shell receives a SIGHUP. current job .-a
all the-r
running jobs.
Veja também: Material da shell: controle de tarefas e tela
If you use the bash shell, then you have an alternative (don't you always?) Instead of using nohup, just run the command normally, put it in the background one of the two ways we've discussed, and then disown -h the job.
$ tar cjf /backup/rob/home.tar.bz2 . & [1] 32089 $ disown -h
You can then safely logout or close your terminal. As with nohup, if you close the terminal or logout, you will not be able to access that command directly using the jobs and
%<N>
orfg <N>
commands..
Postagens relacionadas na rede do Stack Exchange: