On Tue, 09 May 2006 09:46:53 +1200 David Kirk <[EMAIL PROTECTED]> wrote:
> Bernard, > > Is it a normal action that when you open a programme in a terminal window, > > that closing the terminal window also closes the programme? > > > > If you type in a command in your terminal screen then that program is > reliant on that terminal screen being there (it is running in the > foreground). > > If you put a space and a '&' after your command then it will run in the > background and not be reliant on that terminal. You will be able to run > other commands from that terminal or close it. > > $ gtk-gnutella & > > If you have run a program in the foreground and want to send it to the > background, hit Ctrl-z which will suspend the job. Then you can type bg to > resume it in the background. Type jobs to see what's running in the > background. You can type fg to bring it back to the foreground if you want. > > -- > Later > > David Kirk > err... not quite. A backgrounded process is still connected to stdin, out and err, which default to the terminal. You need to look at the 'nohup' command to provude the functionality you describe. Steve
