Little bash programming

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Jeffrey Pyne
日付:  
題目: Little bash programming
...or:

pkill mozilla

I usually precede that with a

pgrep -l mozilla

Just to preview what I will be killing. Just another way to skin this
particular cat.

~Jeff

On Wednesday, July 10, 2002 10:00 PM, Robert Bushman sent:

> Hmmm, important safety tip - the right way to do this is:
>
> $ ps -a | grep mozilla
>
> VERIFY THAT YOU WANT ALL DISPLAYED PROCESSES TO DIE!
>
> $ kill `ps -a | grep mozilla | awk {'print $1'}`
>