{"height":"190","author_name":"kiririmode","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkiririmode.hatenablog.jp%2Fentry%2F20091122%2Fp1\" title=\"Perl \u3067 Expect - \u7406\u7cfb\u5b66\u751f\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","version":"1.0","url":"https://kiririmode.hatenablog.jp/entry/20091122/p1","author_url":"https://blog.hatena.ne.jp/kiririmode/","blog_title":"\u7406\u7cfb\u5b66\u751f\u65e5\u8a18","published":"2009-11-22 00:00:00","image_url":null,"title":"Perl \u3067 Expect","description":"\u5bfe\u8a71\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u81ea\u52d5\u5316\u3059\u308b\u306e\u306b expect \u304c\u3042\u308b\u3068\u3044\u3046\u8a71\u3092\u524d\u306b\u540c\u50da\u304b\u3089\u805e\u3044\u3066\u3044\u307e\u3057\u305f\u304c\u3001Perl \u3067\u3084\u308b\u3068\u3069\u3046\u306a\u308b\u3093\u3060\u308d\u3046\u3068\u304b\u601d\u3063\u3066\u308b\u3068\u3001\u305d\u306e\u307e\u307e Expect \u3063\u3066\u3044\u3046\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u3042\u3063\u305f\u3002 \u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30b3\u30de\u30f3\u30c9\u306e\u30af\u30bd\u9762\u767d\u304f\u306a\u3044\u4f8b\u3068\u3057\u3066\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u308c\u3092 Expect.pm \u3067\u66f8\u304f\u3068\u305f\u3076\u3093\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308b\u3093\u3060\u3068\u601d\u3044\u307e\u3059\u3002 #!/usr/bin/perl use strict; use warnings; use Expect; my $cmd = 'passwd'; my $oldpass = 'aaaa'; my $newpass = 'bbbb'; my $e\u2026","provider_name":"Hatena Blog","blog_url":"https://kiririmode.hatenablog.jp/","categories":["perl"],"width":"100%","type":"rich"}