alex kuklin wrote:
Oleg Gashev wrote:
Приветствую!
Abdourazak Osmanov wrote:
Проблема такая.
Была заведена SSH-сессия. В ней запущены некоторые процессы.
Случайно закрыл окно терминала. Все, что я запустил на удаленном
серваке, тоже прекратило работу?
Можно запускать процесс в background-е.
Не вводите в заблуждение. Он тоже словит sighup и завершится при
отключении сеанса, если не имеет отдельной обработки этого сигнала.
Если нужно что-то запускать с возможностью отключиться, то это либо
nohup, либо screen.
а как насчет disown ?
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.
пока 25G директория tar-ится в фоне , ssh сессия разорвана .
но screen конечно удобнее .
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]