<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iww</author_name>
  <author_url>https://blog.hatena.ne.jp/iww/</author_url>
  <blog_title>揮発性のメモ２</blog_title>
  <blog_url>https://iww.hateblo.jp/</blog_url>
  <categories>
    <anon>Linux</anon>
  </categories>
  <description>interactは対話に使うものなので、タイムアウトしてくれない。 無限待ちになったらいやなので、バッチ処理では使わないようにする。 #!/usr/bin/expect -f log_user 0 set timeout 5 spawn ssh hoge@192.168.1.2 &quot;echo 10秒待つ; sleep 10; ls&quot; expect { &quot;assword:&quot; { send &quot;password\r&quot; } timeout { send_error &quot;\nLOGIN TIMEOUT\n&quot;; exit 1 } eof { send_error &quot;\nLOGIN DISCONNECT\n&quot;;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20130709%2Fexpect&quot; title=&quot;expectでinteractは危険なのでexpectを使う - 揮発性のメモ２&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>2013-07-09 00:00:00</published>
  <title>expectでinteractは危険なのでexpectを使う</title>
  <type>rich</type>
  <url>https://iww.hateblo.jp/entry/20130709/expect</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
