Thursday, June 28, 2018

Running a process in the background (CentOS)

I had first tried using & at the end of the line, it seemed to work but process became inactive after sometime.

Then, I tried using nohup  <mycommand> & which worked!

nohup - the "no hangup" tells the process to continue even if the user has logged off.

& - As you know we use this to run the command as a background task.