Tuesday, April 19, 2022

[SOLVED] Running process nohup

Issue

There is a benchmarking process, which should be run on a system. It takes maybe a day, so I would like to run it nohup. I use this command:

nohup bash ./run_terasort.sh > terasort.out 2>&1 &

After that I can see with PID in jobs -l output, but after closing PuTTy it stops(as I can see, when I login again).

This is a KVM virtualized machine.


Solution

You are using nohup right from what I know. But you have an issue detecting the process.

jobs -l only give the processes of current session. Rather try the below to display the process started in your initial session:

ps -eafww|grep run_terasort.sh|grep -v grep


Answered By - J. Chomel
Answer Checked By - Marie Seifert (WPSolving Admin)