Hi all
Hoping some-one can help me. I have run a process and put it into the background. I have then logged off and then logged back on later but i can not get the process to come back to the foreground. Does anyone know how to do it? Any help would be extremely gratefully received.
Pete Bassill
I don't think that you can regain control of the process. When you logged out and your shell terminated, your background job was inherited by process 1 (init). Although it continued to run under your user ID, it was no longer your property.
On 22-Nov-01 Peter Bassill wrote:
Hi all
Hoping some-one can help me. I have run a process and put it into the background. I have then logged off and then logged back on later but i can not get the process to come back to the foreground. Does anyone know how to do it? Any help would be extremely gratefully received.
Pete Bassill
on Thu, Nov 22, 2001 at 10:37:32AM -0000, Peter Bassill wrote:
Hoping some-one can help me. I have run a process and put it into the background. I have then logged off and then logged back on later but i can not get the process to come back to the foreground. Does anyone know how to do it? Any help would be extremely gratefully received.
GNU screen will allow you to do this. http://www.gnu.org/software/screen/
The issue is, I think, that as soon as you log out, the tty/pts that was associated with the background process for output and input is closed and permission is revoked. I haven't seen a standard way to reset a processes input and output channels. (although if you are writing the bg'd proccess, reopening file descriptors 0,1,2 from /dev/pts/XX without O_NOCTTY should work)