<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>srkzhr</author_name>
  <author_url>https://blog.hatena.ne.jp/srkzhr/</author_url>
  <blog_title>半径5メートル</blog_title>
  <blog_url>https://srkzhr.hatenadiary.org/</blog_url>
  <categories>
    <anon>Linux</anon>
  </categories>
  <description>Linuxサーバに載ってるCPU数を知りたいと思い、その場で以下のようなsar -Pを使ったシェルスクリプト書いて実行。 #!/bin/sh i=0 while true do sar -P ${i} 0 &gt; tmp.txt if [ `cat tmp.txt | wc -l` -eq 0 ]; then rm -f tmp.txt break fi let i=${i}+1 done echo &quot;result : ${i}&quot;確かにそれでも調べられるんだけど、ぐぐったら cat /proc/cpuinfo | grep processorこれでいいじゃんね、というヲチ・・</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsrkzhr.hatenadiary.org%2Fentry%2F20071221%2F1198214910&quot; title=&quot;LinuxサーバのCPU数を調べる、とか - 半径5メートル&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>2007-12-21 14:28:30</published>
  <title>LinuxサーバのCPU数を調べる、とか</title>
  <type>rich</type>
  <url>https://srkzhr.hatenadiary.org/entry/20071221/1198214910</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
