Find the Process run by nohup command Find the Process run by nohup command linux linux

Find the Process run by nohup command


ps auxwww|grep -i 'server' should return all process which has server in them. Otherwise, server may have already stopped.

You should be able to determine the PID (and store it in a file) as follows:

nohup server &print $! >> my_server.pid


If a nohup.out file was created, you may run in bash:

# lsof nohup.out

it will return the pid which created/is running the file

best regards!


There is no definitive way to catch the exact process with the help of ps command, but you can use the following:

ps -a | grep "server"

You will get a list of all the processes running with the name "server"

Or, you can use any other keywords as well to grep the ps output.