{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frokujyouhitoma.hatenablog.com%2Fentry%2F20091217%2F1261057655\" title=\"Python\u3067SSH\u3068\u304bSCP\u3068\u304b\u3092\u81ea\u52d5\u5316 - rokujyouhitoma&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/rokujyouhitoma/","author_name":"rokujyouhitoma","title":"Python\u3067SSH\u3068\u304bSCP\u3068\u304b\u3092\u81ea\u52d5\u5316","published":"2009-12-17 22:47:35","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","type":"rich","url":"https://rokujyouhitoma.hatenablog.com/entry/20091217/1261057655","blog_title":"rokujyouhitoma's blog","width":"100%","image_url":null,"version":"1.0","blog_url":"https://rokujyouhitoma.hatenablog.com/","height":"190","description":"\u3061\u3087\u3044\u3068SCP\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u3063\u3066\u304d\u305f\u308a\u3001\u7f6e\u3044\u305f\u308a\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u304b\u3063\u305f\u306e\u3067\u3002 Pexpect Pexpect\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5229\u7528\u3002 \u30b3\u30de\u30f3\u30c9\u3092\u81ea\u52d5\u5316\u3067\u304d\u308b\u3002\u4e00\u756a\u826f\u3044\u306e\u306fpassword\u3092\u805e\u304b\u308c\u308b\u306e\u3092\u81ea\u52d5\u3067\u7b54\u3048\u3066\u304f\u308c\u308b\u3053\u3068\u3002 SCP SCP\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3002\u3089\u304f\u3061\u3093\u3002 import pexpect SERVER = \"www.rokujyouhitoma.com\" USER = \"rokujyouhitoma\" SOMEDIR = \"~\" PASSWORD = \"bar_password\" UPLOADDIR = \"baz_dir\" if __name__ == \"__main__\": scp \u2026","categories":["Python"]}