Re: Grab A PTS terminal session
- From: Andy Botterill <andy@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 20 Apr 2009 21:24:31 +0100
Steve Devnull wrote:
On Mon, 20 Apr 2009 08:42:03 +0000, Mike Civil put out:
In article <49ec1412$0$2481$db0fefd9@xxxxxxxxxxxxxx>, Steve Devnull <drop.mail@xxxxxxxxxxxx> wrote:Is it possible for the new user to 'grab' the session from the originalTechnically it is possible to change the controlling terminal, for
user - or to transfer the running program/process so it continues to run
without needed to be restarted?
example see:-
http://blog.habets.pp.se/2009/03/Moving-a-process-to-another-terminal
but this probably isn't going to help in your circumstances. To make
things easier in future how about invoking screen in ~/.profile or
similar?
Mike
You're right Mike, it doesn't help - I'd already run over that. Thanks anyway fella. I don't think it's easily possible. As for using screen, normally I would. It's just one of those days when a job that should have taken a few minutes took an age and had to be handed over.
One thing that you could try is something like this.
some-unix-command > results.txt &
You can optionally save the stderr to another file if you want.
This should carry on running even if you log out. The command nohup should guarantee this.
This process should carry on running even if you log out.
The next person to login can monitor the process by using top or ps. They can only terminate it by su'ing to the original account and stopping it. Of course root can do this as well.
The next person to login can monitor the output by looking at results.txt. It is not execatly what you want but it will allow the process to continue as long as you want.
You can start processes at specific times so that work can be done in time for the start of the regular working day. The at command allows that.
Unless you need to do things interactively this will work easily.
Hopefully this is useful. Andy
.
- Follow-Ups:
- Re: Grab A PTS terminal session
- From: Will Kemp
- Re: Grab A PTS terminal session
- References:
- Grab A PTS terminal session
- From: Steve Devnull
- Re: Grab A PTS terminal session
- From: Mike Civil
- Re: Grab A PTS terminal session
- From: Steve Devnull
- Grab A PTS terminal session
- Prev by Date: Re: Grab A PTS terminal session
- Next by Date: Re: Grab A PTS terminal session
- Previous by thread: Re: Grab A PTS terminal session
- Next by thread: Re: Grab A PTS terminal session
- Index(es):
Relevant Pages
|