[Ilugc] .a-tip-a-day. (kill - get signal list and kill processes)

  • From: steve@xxxxxxxxxxxx (steve)
  • Date: Mon Nov 2 11:51:07 2009

On 11/02/2009 09:40 AM, Roshan George wrote:

On Mon, 2009-11-02 at 08:22 +0530, rakhi india wrote:
 >  $ ps aux | grep<process-pattern>
 >
 >  Alternatively, there's also pgrep
 >
 How to find/search the id of a process running background.
 Say, i started the process using '&'   -  $tktalk&
 If i don't know the pid of tktalk , could you let me how to find it.

The answer is in the email you responded to. Use `pgrep`.

Although if you are looking specifically for backgrounded jobs, you could use 
the bash builtin 'jobs':

$ jobs -l

cheers,
- steve
-- 
random non tech spiel: http://lonetwin.blogspot.com/
tech randomness: http://lonehacks.blogspot.com/
what i'm stumbling into: http://lonetwin.stumbleupon.com/

Other related posts: