Linux Learning
Search This Blog
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
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment