[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mandar comando ejecutado a segundo plano mientras se está ejecutando



On Thu, Feb 06, 2014 at 10:23:48AM +0100, Alberto Luaces wrote:
> Maykel Franco writes:
> 
> > Si cierro la terminal,
> > se va a cancelar el comando que esté ejecutándose en ese momento.
> 
> Para eso es el «screen» que te han recomendado, o el «tmux».

Exacto, «screen» y «tmux» son buenas alternativas. Y si se busca
una opción más fiable que «nohup» y aún más sencilla que «screen» o 
«tmux», se puede recurrir a «dtach»:

$ aptitude show dtach
Paquete: dtach
Estado: instalado
Instalado automáticamente: no
Versión: 0.8-2.1
Prioridad: opcional
Sección: misc
Desarrollador: Stefan Völkel <stefan@bc-bd.org>
Arquitectura: amd64
Tamaño sin comprimir: 59,4 k
Depende de: libc6 (>= 2.2.5)
Descripción: emulates the detach/attach feature of screen
 dtach is a tiny program that emulates the detach feature of screen, allowing
 you to run a program in an environment that is protected from the controlling
 terminal and attach to it later. dtach does not keep track of the contents of
 the screen, and thus works best with programs that know how to redraw
 themselves. 
 
 dtach does not, however, have the other features of screen, such as its support
 of multiple terminals or its terminal emulation support. This makes dtach
 extremely tiny compared to screen, making it more easily audited for bugs and
 security holes, and also allows it to fit in environments where space is
 limited, such as on rescue disks.
Página principal: http://dtach.sourceforge.net/

-- 
Pablo Jiménez


Reply to: