1833757 Members
3046 Online
110063 Solutions
New Discussion

control background jobs

 
Ruediger Noack
Valued Contributor

control background jobs

Hi all,

is it possible to get control background jobs from a terminal different of the job starting terminal?
Sometimes there are so many pseudo terminals they make is difficult to find the starting one or the starting terminal is already closed...

Thanks for reply

Ruediger
4 REPLIES 4
Santosh Nair_1
Honored Contributor

Re: control background jobs

If you have the screen package installed, then you should be able to do something like this. (See http://www.gnu.org/software/screen/ for more details). Otherwise, I don't believe its possible to regain control of the background process once you've lost the tty where the background process was started. Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
Chris Vail
Honored Contributor

Re: control background jobs

I'm starting to sound like a Citrix Metaframe for Unix bigot, but again I have to point out
that this product permits this very thing. Should a user improperly close a session, that
session can be re-connected (with appropriate username/password) from any terminal.
There are also provisions for a priviledged user to 'shadow' another user to see exactly what is being done/typed on that session. A priviledged user can disconnect a lesser session and take control of it.
In short, it gives the privileged user A LOT of control over sessions that off-the-shelf unix doesen't offer.



Chris
Ruediger Noack
Valued Contributor

Re: control background jobs

Thanks so far, but I hoped to find a solution without additional software or preparations, only with native unix commands.

Ruediger
Deepak Extross
Honored Contributor

Re: control background jobs

Hi,
As long as you're in the same session you can do a 'fg' to regain control of your background job. But I don't think you can do this from another session - it would be a serious security violation, methinks, if the OS allowed that.