First page Back Continue Last page Overview Graphics
Example 2-5
Running job in the background nohup
As a geophysicist, we frequently need to run a large time consuming job on a Linux workstation without being logged in after running the job. To run a program in the background (without being logged in), the program should be run by nohup command. At this stage, we assume that the program does not ask for any input interactively.
nohup program1 &
To see if the program is running, use the command top. The nohup command directs automatically the output of the program1 to file nohup.out
To see the latest output of your program on screen, use command tail -f nohup.out