Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs

Partner Sites
JustLinux.com
Linux Planet
PHPBuilder
Technology Jobs

Top White Papers

More on LinuxToday


Things to Do With 'kill'

Jan 06, 2009, 23:34 (1 Talkback[s])
(Other stories by Juliet Kemp)

"kill -0 pid: This doesn't actually kill the process, just returns 0 (success) if the process exists and 1 (failure) if not. The command itself will not give you any output -- you have to look at the exit code, using echo $? to get the information. So as a one-liner:

"kill -0 1685; echo $?"

Complete Story

Related Stories: