Tuesday, April 7, 2009

Running a command in unix that continues to run when you logout

It is often necessary to run a script/process in the background that continues to run when you logout. In Unix/Linux systems we make use of the nohup command e.g.
nohup java [java_class] &

The "&" indicates that the process should run in the background.