Re: Grab A PTS terminal session



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 original
user - or to transfer the running program/process so it continues to run
without needed to be restarted?
Technically it is possible to change the controlling terminal, for
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
.



Relevant Pages

  • Re: [SLE] SuSE Installation runs monitor Out of Range
    ... I was doing this on a 15" travel monitor at the local yesterday. ... > This is not a new problem for the 9.1 Installation; ... > the system configuration had been recognized as and set to VESA ... if one cannot do a graphical login because of running ...
    (SuSE)
  • Re: Where is Local Group Assignment Stored?
    ... simple to monitor for password change, ... for example - send you an e-mail every time an attempt to login with the ... W2k were addressed with W2k3. ...
    (microsoft.public.windows.server.security)
  • Re: black screen
    ... Also change the monitor to see if the problems go away or remain. ... Microsoft Windows Small Business Server 2003 Best Practices Analyzer ... How to Use the Windows SBS 2003 BPA ... When you press control alt del a black login screen appears. ...
    (microsoft.public.windows.server.sbs)
  • Re: Monitor troubles in linux.
    ... > to shake so I decided to edit my xorg.conf to change the refresh rate ... > it loads all my user settings i guess, because right before the login ... I tried booting up from the livecd and the monitor runs fine. ...
    (alt.linux)
  • Re: Monitor troubles in linux.
    ... > Alright well, I have been running a dual booted ubuntu 5.04 with xp for ... > it loads all my user settings i guess, because right before the login ... I tried booting up from the livecd and the monitor runs fine. ...
    (alt.linux)