mm haven't ever tried that...
anyway, if you wish to try the &-thingie (the & after the command makes the process go background, so that you can do other stuff and the process itself should run "silently" but still run..), here's how it works:
- a process is sent to background in it's startup by giving & at the end of the line and then pressing return
- a process sent to background gets something like a symbolic number (what was the exact name?), so that the first one is known as %1, second %2, third %3 and so on...so it's a percent-mark and the number which starts from 1.
- a process is called back to foreground (from background) via "fg" command: let's say you have three background processes. typing "jobs" in terminal (without quotes) tells you you have three processes and shows their numbers (1, 2 and 3). now you want to get process 2 back to your screen (foreground) - you give the following command in terminal:
that takes the job number 2 (you see the numbers corresponding the processnames with the jobs -command) back to foreground. I've also heard about "bg" command which should send processes (running) to background, but haven't tried it... a running process can (as far as I know) be sent to background by giving CTRL+Z when it's active on your screen. and then brought back with fg.
so to get a process to background, start it with & and to get it back foreground by giving a command "fg" without quotes - running program is sent to background with ^Z (ctrl+Z)
now I remembered it...the reason, why apps shut down when you close the shell
it's because of linux's (and unix-like os's) way of managing processes: each process may have it's subprocesses, like a terminal (a process) can run other apps from it if you run them by typing the app name in terminal - these apps run from the terminal are the subprocesses of the terminal. now when you kill a process (the terminal), all it's subprocesses are also killed - so every app you start from the terminal, are also killed when you shoot it down. solution? you really should get your apps started as subprocesses of something that won't shut down when you cut your connection to the shell..this is how the way Thymox said works I guess.