NOHUP Running the long running commands in background
This article will guide you through how to run the long running command in background without hanging, see the job status and get the output to the file for diagnostic purpose. We can use nohup and send your long running command to background so that you can continue while the command will keep on executing in the background . After that you can safely log out. With nohup command we tell the process to ignore the SIGHUP signal which is sent by command on termination, thus making the command persist even after session logout. On session logout the command is detached from the controlling terminal and keeps on running in the background as the daemon process . Executing command using nohup in the background Here, is a simple scenario wherein, I am trying to restore a big database file in the background on ssh session using nohup , after which the task was sent to background with prompt returning immediately giv...