I have spawned a process with another application. I can see that it is running with:
ps -ef
How can I switch into that process as if I started it manually myself by entering the command into the console?
If it's started from current shell, use standard job-control e.g.
$ jobs
$ gedit &
[1] 3341
$ jobs
[1]+ Running gedit &
$ fg %1
gedit
Basically, you can only manage processes with job control that are children of your current shell, that is, jobs started by the shell you are working with. If you did start and background the process with your current shell, fg
and the other job control options will work. If not, you cannot manage the job with the shell.
The mostly used "workaround" (actually much more powerful than the shell) is GNU screen
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With