Originally Posted by Naikon
..and at the end a & as found in some helps, but it won't work...
The ampersand at the end is what puts things in the background.
Could you define "won't work"? Does this mean it won't go into the background? Or that it gets killed when you logoff? If it's the latter, put "nohup" in front of the command line and "&" at the end.
BTW, say you started a process in the foreground but really meant to start it in the background. You can fix this after-the-fact without killing and restarting the process with an ampersand tacked on to the end.
(1) Type ctrl-z to stop the process ("stop" does not equal "kill", a stopped process is still there - just not doing anything).
(2) Then type "bg" to restart it again, but in the background.
(3) If you want to later bring the backgrounded process back to the foreground, type "fg".
Both bg and fg accept a parameter to specify which process you want to mess with, should you be juggling multiple backgrounded processes.
p.s. - When messing with backgrounded jobs (bg, fg, etc.) the "jobs" command is your friend. It will list what you're currently running.