<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzo_kino</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzo_kino/</author_url>
  <blog_title>Bye Bye Moore</blog_title>
  <blog_url>https://shuzo-kino.hateblo.jp/</blog_url>
  <categories>
    <anon>unix</anon>
  </categories>
  <description>pidofは、コマンド名から稼働中のプロセス番号を調べることができるコマンドです。 $ pidof catとやれば、 7143てな感じでプロセス番号がわかります。複数のコマンドについて実行も可能です $ pidof ruby cat 21528 21465 21527 21464 インラインで実行もできるので、 $ kill -9 $(pidof rails)とった風に稼働中のrailsアプリを停止させる際も楽々。 ただし、これだと同名のコマンドが稼働していた場合、 まとめて停止させてしまうので注意してください。 参考元 man pidof</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2015%2F04%2F18%2F190716&quot; title=&quot;pidofで、コマンド名から稼働中のプロセス番号がわかる - Bye Bye Moore&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-04-18 19:07:16</published>
  <title>pidofで、コマンド名から稼働中のプロセス番号がわかる</title>
  <type>rich</type>
  <url>https://shuzo-kino.hateblo.jp/entry/2015/04/18/190716</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
