Is it possible to attach a terminal to an already runing process by using it's pid in a similar fashion to using the fg command for jobs.
|
|
|||||
|
|
There are a few options here. One is to redirect the output of the command to a file, and then use 'tail' to view new lines that are added to that file in real time. Another option is to launch your program inside of 'screen', which is a sort-of text-based Terminal application. Screen sessions can be attached and detached, but are nominally meant only to be used by the same user, so if you want to share them between users Else if you wish you can trace the Process and See What It is Doing with
|
|||||||
|
|
You can use these commands given below to attach a running process on another terminal
Example:
|
|||||
|
|
You can get that process's standard file descriptors, e.g.
|
||||
|