<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>teramako</author_name>
  <author_url>https://blog.hatena.ne.jp/teramako/</author_url>
  <blog_title>hogehoge @teramako</blog_title>
  <blog_url>https://teramako.hatenadiary.org/</blog_url>
  <categories>
    <anon>Perl</anon>
  </categories>
  <description>ちょこちょことPerlを勉強中。 んで、プロセスのリストを親子関係で並び替えて表示するのを作ってみた。 pstree#!/usr/bin/perl -w use strict; use warnings; my @processes; open my $FH, &quot;/bin/ps -eo pid,ppid,user,etime,pcpu,pmem,args |&quot; or die &quot;ERROR: $!&quot;; my $header = &lt;$FH&gt;; while (&lt;$FH&gt;){ chomp; s/^\s+//; my @F = split(/\s+/, $_, 7); my $p = { PID =&gt; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fteramako.hatenadiary.org%2Fentry%2F20081003%2Fp2&quot; title=&quot;プロセスをツリー表示 - hogehoge @teramako&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>2008-10-03 00:00:00</published>
  <title>プロセスをツリー表示</title>
  <type>rich</type>
  <url>https://teramako.hatenadiary.org/entry/20081003/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
