* Really into the backgroung...
@ 2013-08-11 12:47 meino.cramer
2013-08-11 13:41 ` Timo Schmidt
0 siblings, 1 reply; 4+ messages in thread
From: meino.cramer @ 2013-08-11 12:47 UTC (permalink / raw)
To: zsh-users
Hi,
I run into the following situation:
>From my Linux-PC I have a ssh-connection to a single-board
Linux computer (Beaglebone Black). On my PC and on the
Beaglebone zsh is the system shell.
>From my Linux PC I started on my Beaglebone the (native)
compilation of the Linux kernel.
This will take about eight hours...
I need to reboot my Linux PC for testing purposes and
I dont want until midnight... ;)
Is there any chance to detach the running process, which
compiles the kernel, from the ssh-session in a way that
I am able to reboot the PC without breaking the kernel
compilation (I cannot restart the compilation by hand...
because it is steered by a custumized script) ? ???
Best would be if I could reconnect to it afterwards...
Thank you very much in advance for any help!
Best regards,
mcc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Really into the backgroung...
2013-08-11 12:47 Really into the backgroung meino.cramer
@ 2013-08-11 13:41 ` Timo Schmidt
2013-08-11 17:56 ` Benjamin R. Haskell
0 siblings, 1 reply; 4+ messages in thread
From: Timo Schmidt @ 2013-08-11 13:41 UTC (permalink / raw)
To: zsh-users
On Sun 11.08.2013 14:47, meino.cramer@gmx.de wrote:
>
> Is there any chance to detach the running process, which
> compiles the kernel, from the ssh-session in a way that
> I am able to reboot the PC without breaking the kernel
> compilation
Use tmux or screen.
-Timo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Really into the backgroung...
2013-08-11 13:41 ` Timo Schmidt
@ 2013-08-11 17:56 ` Benjamin R. Haskell
2013-08-12 11:29 ` Yuri D'Elia
0 siblings, 1 reply; 4+ messages in thread
From: Benjamin R. Haskell @ 2013-08-11 17:56 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1130 bytes --]
On Sun, 11 Aug 2013, Timo Schmidt wrote:
> On Sun 11.08.2013 14:47, meino.cramer@gmx.de wrote:
>>
>> Is there any chance to detach the running process, which compiles the
>> kernel, from the ssh-session in a way that I am able to reboot the PC
>> without breaking the kernel compilation
>
> Use tmux or screen.
`dtach` and `reptyr` are other lesser-known tools that support just the
attach/detach functionality of `tmux` or `screen` (which are basically
terminal window managers). `dvtm`¹ ("dynamic virtual terminal manager")
is another alternative in that realm.
`dtach`² (as the name implies) just supports the attaching and detaching
feature.
The problem with `tmux`, `screen`, and `dtach` is that you have to use
it before your process is running. If you've forgotten to tmux- or
screen-ify the process beforehand, you might try `reptyr`³ (It "re-"
"pty"'s a program.) It's Linux-only, and uses ptrace(2) hackery to
attach a process running on a different pty to a new one.
--
Best,
Ben
¹: http://www.brain-dump.org/projects/dvtm/
²: http://dtach.sourceforge.net/
³: https://github.com/nelhage/reptyr
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Really into the backgroung...
2013-08-11 17:56 ` Benjamin R. Haskell
@ 2013-08-12 11:29 ` Yuri D'Elia
0 siblings, 0 replies; 4+ messages in thread
From: Yuri D'Elia @ 2013-08-12 11:29 UTC (permalink / raw)
To: zsh-users
On 08/11/2013 07:56 PM, Benjamin R. Haskell wrote:
> The problem with `tmux`, `screen`, and `dtach` is that you have to use
> it before your process is running. If you've forgotten to tmux- or
> screen-ify the process beforehand, you might try `reptyr`³ (It "re-"
> "pty"'s a program.) It's Linux-only, and uses ptrace(2) hackery to
> attach a process running on a different pty to a new one.
reptyr is awesome. Though a big limitation is that currently can only
re-attach processes without children (which happens a lot more than one
might expect).
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-08-12 11:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-11 12:47 Really into the backgroung meino.cramer
2013-08-11 13:41 ` Timo Schmidt
2013-08-11 17:56 ` Benjamin R. Haskell
2013-08-12 11:29 ` Yuri D'Elia
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).