Use of nohup command to keep process running even after you logged out
Using NohupUse the nohup command to keep a process running in the background after you logout.
$ nohup cmd &For example, suppose you use the tar command to backup the database dump file from /export directory to a tape, /dev/rmt/0.
$ tar cvf /dev/rmt/0 /export > tar_log &In this example, standard output is redirected to the file tar_log. If you logout before the command finishes executing, it will stop the process and your backup will not be completed. However, precede the tar command with the nohup command and the backup will finish even if you logout.
$ nohup tar cvf /dev/rmt/0 /docs > tar_log &This is very useful option if you want to avoid interruption due to network failure.