<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>vaaaaaanquish</author_name>
  <author_url>https://blog.hatena.ne.jp/vaaaaaanquish/</author_url>
  <blog_title>Stimulator</blog_title>
  <blog_url>https://vaaaaaanquish.hatenablog.com/</blog_url>
  <categories>
    <anon>xonsh</anon>
    <anon>スクリプト</anon>
    <anon>Python</anon>
  </categories>
  <description>- はじめに - shellでsshのパスワード入力などの対話行動を自動化するには、expectコマンドを使うのが一般的である。対して、xonshではPythonの記述やパッケージの利用が可能となる。本記事は、pythonを利用しながら筆者が利用しているssh周りのコードを例にとってshell対話自動化を行う際のtipsをまとめるものである。 - pexpect - pythonを利用して、対話自動化を行うパッケージとしてpexpectがある。github.compipで導入する。 pip install pexpect xonshでpexpectを利用する xonshrcにでもそれっぽく書く…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fvaaaaaanquish.hatenablog.com%2Fentry%2F2018%2F08%2F11%2F001951&quot; title=&quot;xonshにおけるpexpectを利用した対話コマンド自動化 - Stimulator&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>https://cdn-ak.f.st-hatena.com/images/fotolife/v/vaaaaaanquish/20180811/20180811001501.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-08-11 00:19:51</published>
  <title>xonshにおけるpexpectを利用した対話コマンド自動化</title>
  <type>rich</type>
  <url>https://vaaaaaanquish.hatenablog.com/entry/2018/08/11/001951</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
