Search This Blog

Showing posts with label process. Show all posts
Showing posts with label process. Show all posts

Monday, August 2, 2010

Process monitoring.

use following command to check whether the process exists or not.
#
kill -0


Example:

# kill -0 5071
[root@Localhost ~]# echo $?
0
[root@
Localhost ~]# kill -0 5169
-bash: kill: (5169) - No such process
[root@
Localhost ~]# echo $?
1