I knew of CTRL-Z(Stop) and "do bg 1" .
+ Stopped gxine
prakash@dcbox:~$ bg 1
+ gxine &
(gxine:3464): Gdk-WARNING **: gdk_window_set_user_time called on non-toplevel
^^^^ and it works also.then,I can "exit".
Another solution to exit terminal after having the process moved to background ,is to type :
now,the process id(pid) of gxine is not "1"(as expected);but it has changed -for eg,here gxine has pid of "3796"
As regarding catching program running on background to another terminal ,I tried "fg 1" ,but which tells "bash: fg: 1: no such job" or pid of gxine(My example) :
"bash: fg: 3796: no such job"
,but the process is not attched to the newly invoked terminal.Any use of "disown -h" while doing "bg 1" ?How Will it be possible to attach the process to current terminal?
Thanks For the Replies