Hi, I was trying to find a way to attach a process to the shell's job list with no luck. I wanted to be able to bring a running process into the foreground of a shell session that didn't start the process. The closet command that i could find was the disown command for bash, which does the opposite of what I'm looking for. Does anyone know of a bash (or any other shell) command that will let you bring a processes into the foreground of a shell, which is not the original parent of the process? Thanks, --Brad
I beleive you want screen. Screen is a program which runs a shell, and by typing ^a + d it puts the shell into th ebackground (and any program(s) you ran from it) and by typign screen -r it brings it back up. You can bring it back up anywhere. I use it for IRCing. Orbitz Brad Noyes wrote:
Hi, I was trying to find a way to attach a process to the shell's job list with no luck. I wanted to be able to bring a running process into the foreground of a shell session that didn't start the process. The closet command that i could find was the disown command for bash, which does the opposite of what I'm looking for. Does anyone know of a bash (or any other shell) command that will let you bring a processes into the foreground of a shell, which is not the original parent of the process? Thanks, --Brad _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
Hi, Thanks for responding. With your example, the shell would be the original parent of the process. What i'm looking for is not just, putting a running process into the background (say by ctl-z, then bg), and then brining back into the foreground (say by using fg %2). I'm looking to do is bring a process into the foreground to a shell, of which, the shell is not the original parent of the process. --Brad On Monday 05 February 2001 18:01, Doctor Orbitz wrote:
I beleive you want screen. Screen is a program which runs a shell, and by typing ^a + d it puts the shell into th ebackground (and any program(s) you ran from it) and by typign screen -r it brings it back up. You can bring it back up anywhere. I use it for IRCing.
Orbitz
Brad Noyes wrote:
Hi, I was trying to find a way to attach a process to the shell's job list with no luck. I wanted to be able to bring a running process into the foreground of a shell session that didn't start the process. The closet command that i could find was the disown command for bash, which does the opposite of what I'm looking for. Does anyone know of a bash (or any other shell) command that will let you bring a processes into the foreground of a shell, which is not the original parent of the process? Thanks, --Brad _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
Yes, screen is what you want, but not it the way you think. Screen must be the original parent of the *shell itself* beforehand. (I believe screen can also spawn other processes besides shells.) Screen then lets you detach from that shell and all of it's child processes. You can also run multiple shells and other processes in different "windows" under screen. There is no way in UNIX that I know of to redirect a process' stdin/stdout/stderr after it is started. So, you have to think ahead and start screen before starting the process(es) that you want to attach to from a different shell. On Mon, 5 Feb 2001, Brad Noyes wrote: maitre> Thanks for responding. With your example, the shell would maitre> be the original parent of the process. What i'm looking maitre> for is not just, putting a running process into the maitre> background (say by ctl-z, then bg), and then brining back maitre> into the foreground (say by using fg %2). I'm looking to maitre> do is bring a process into the foreground to a shell, of maitre> which, the shell is not the original parent of the maitre> process.
participants (4)
-
Brad Noyes
-
Brad Noyes
-
Charles R. Anderson
-
Doctor Orbitz