plaidshirt
plaidshirt

Reputation: 5671

Running process nohup

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.

Upvotes: 1

Views: 622

Answers (1)

J. Chomel
J. Chomel

Reputation: 8395

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

Upvotes: 1

Related Questions