2 Linux should be capitalized.
source | link

I want to know if there is a way to listen to a process in linuxLinux & unix - when it ends and what's the exit code of the process(script).

I dontdon't want to write a script that will run X seconds and check by ps -ef | grep PID if the process is still alive. I want to know if there is a way that the process will notify me when it ended and what was its exit code.

I want to know if there is a way to listen to a process in linux & unix - when it ends and what's the exit code of the process(script).

I dont want to write a script that will run X seconds and check by ps -ef | grep PID if the process is still alive. I want to know if there is a way that the process will notify me when it ended and what was its exit code.

I want to know if there is a way to listen to a process in Linux & unix - when it ends and what's the exit code of the process(script).

I don't want to write a script that will run X seconds and check by ps -ef | grep PID if the process is still alive. I want to know if there is a way that the process will notify me when it ended and what was its exit code.

    Tweeted twitter.com/#!/StackUnix/status/367982507025006592
1
source | link

Is there a way to listen to process?

I want to know if there is a way to listen to a process in linux & unix - when it ends and what's the exit code of the process(script).

I dont want to write a script that will run X seconds and check by ps -ef | grep PID if the process is still alive. I want to know if there is a way that the process will notify me when it ended and what was its exit code.