Hi Terry! On Tue, 22 Aug 2000, Terry Collins wrote: > Hello Sluggers > > list process | grep desired-process | kill desired-process > > Can someone tell me the format of the last part? > > ps axf | grep process | kill -9 "process???" ps axf | grep netscape | sed s/^\ *// | cut -f1 -d" " | xargs kill -9 seems to work for me. kill takes the PID afaik, which is the first argument of ps axf. The pid is right justified so I strip the spaces off the front, and then use cut to get the first field (being the PID). This works, _BUT_ I'm sure there is another (probably better) way of doing it. Cheers, Benno -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
- [SLUG] Select and kill running process Terry Collins
- RE: [SLUG] Select and kill running process Aravind Naidu
- Re: [SLUG] Select and kill running process Ben Leslie
- Re: [SLUG] Select and kill running process Umar Goldeli
- Re: [SLUG] Select and kill running process Malcolm Tredinnick
- Re: [SLUG] Select and kill running process Stuart Cooper
- Re: [SLUG] Select and kill running process Umar Goldeli
- Re: [SLUG] Select and kill running process Jobst Schmalenbach
- RE: [SLUG] Select and kill running process Aravind Naidu
- Re: [SLUG] Select and kill running process Stuart Cooper
- RE: [SLUG] Select and kill running process Jill Rowling
- Re: [SLUG] Select and kill running process Herbert Xu
- Re: [SLUG] Select and kill running process Andrew Reilly