3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

pidofコマンド

Last updated at Posted at 2015-12-01

こんにちは。
バックグランドプログラムが動いているのかの確認を行う目的で、pidof1コマンド利用を試してみました。動いているプロセスはpidを表示します。

$ for x in mongod postgres mysqld; do echo $x" "`pidof $x`; done
mongod 
postgres 999
mysqld 

なおpidofコマンドは動いていないプロセスを引数指定した場合、その出力に少し癖があるようで、シェル実行で一手間必要でした。


  1. MacOSXではhomebrewなどを利用してインストールできます。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?