pexpect - Noah.org pexpectã¨ã¯ãPythonã§Linuxçã®expectã³ãã³ãã¿ãããªæ©è½ã使ããã¹ãããªééã§ãã ã¤ã³ã¹ãã¼ã«ã¨ãããªãã¦ããpexpect.pyãå ¥æãã¦åããã£ã¬ã¯ããªã«ç½®ãã°ä½¿ãã¡ããã®ã§å°å ¥ããã£ã¡ãæ軽ãªã®ããã¤ã³ãã Telnetã¨ãSSHã¨ãFTPã¨ããPythonã§æ±ãããæ¥ã§ãã³ã¬ã§å®å¿ï¼ ã§ãä»æ¥ã¯æ¥æ¬èªã®æ å ±ãå°ãªããªã®ã¨ãæåã§æ©ãã ç¹ããã£ãã®ã§èªåç¨ã¡ã¢ãã¦ãè¨é²ãã¾ãã import pexpect # åããã£ã¬ã¯ããªã«ç½®ãããããã ãã§ä½¿ããã c = pexpect.spawn("telnet 192.168.0.2") # spawnããæç¹ãããpexpectã¯å ¥åã«å¯¾ããåºå(=stdout?)ã®å 容ãå é¨çã«ä¿æããã c.expect("login: ") # expectããæç¹ã§ãå é¨çã«ä¿æ
æè¿ãã¨ã£ã¦ã便å©ãªPexpectã¨ããPythonããã±ã¼ã¸ã使ã£ã¦ã¿ãã 調ã¹ããã¨ãã¾ã¨ããã¦ããç´¹ä»ãã¦ã¿ãã
2012/04/26 è¿½è¨ å 容ãæ´æ°ãããFlucardã§åºæ¥ããã¨ã®ã¾ã¨ã 2012/04/23çããå ¬éãã¦ãã¾ãã âââââââââââââ Flucardãå ¥æãã¦ãããã1é±éã ã¨ããããããããã試ãã¦ã¿ã¦åãã£ãããããããããã£ã¨æ¸ãã¦ã¿ãã Flucardã¨ã¯ 2010å¹´ã«å°æ¹¾ã®TREK 2000 Internationalããçºå£²ããããSDã«ã¼ããµã¤ãºã§ãWiFiãå©ç¨ãã¦ç»å転éãè¡ãããããªè£½åã§ãã ææçã«ã¯Eye-Fiãããã¨ã«çºå£²ããã¦ãã¾ãããæ±èã®FlashAirããã¯ããã£ã¨åãã¨ããå½¢ã«ãªãã¾ãã Eye-Fiã¯æ®ã£ããã®å ¨ã¦ã転éãããã¨ããã®ãåºæ¬æ¹éã§ãããFlucardã¨FlashAirã®æ¹ã¯æ®ã£ãä¸ããå¿ è¦ãªãã®ã ããé¸ãã§è»¢éãããã¨ããã®ãåºæ¬æ¹éã§ãã Eye-Fiã¨åæ§ã®å¤é¨ã®ç»åãµã¤ãã«èªåã¢ãããã¼ããã¨ããæ©è½ãããµã¼
2007å¹´05æ11æ¥12:00 ã«ãã´ãªLightweight Languages perl - telnetã³ãã³ããèªä½ãã Perl Cookbook (English) Christiansen / Torkington [é¦è¨³: Perlã¯ãã¯ããã¯] ãªããã®ã¯èªä½ãã¦ã¿ãã¨ãããã¨ã§ã Vista 㯠telnet ã³ãã³ããç¡å¹åããã¦ãã ã¨ããã Cygwin ãã telnet ã³ãã³ãã使ããªãã¦ç¦ã£ãã Cygwin ã® setup ã確èªããã PATH ã確èªãããã ã³ãã³ãããã³ãããããé§ç®ããã£ã¨ãããªã¨ãããã ptelnet.pl #!/usr/local/bin/perl use strict; use warnings; use IO::Socket::INET; my $addr = shift || die "$0 host [port]
MozLab is a suite of tools and libraries that help make your life easier and your time more productive as a developer of AJAX and Mozilla applications. It's packaged as a Firefox/Thunderbird extension and released as open source. Have a look at the videos for some of the cool things you can do with it. MozRepl Connect to Firefox and other Mozilla apps, explore and modify them from the inside, whil
MozLabã¨ããæ¡å¼µãæ¨æ¥ç¥ã£ãã®ã§ãã http://dev.hyperstruct.net/trac/mozlab ãã®ä¸ã«å«ã¾ãã¦ããMozReplã¨ããã®ãã¤ãããFirefoxã«telnetæ¥ç¶ã§ããããã«ãªãã ã¨ããããRubyã§æ¸ããç°¡åãªãµã³ãã«ãä»è¦ã¦ãããã¼ã¸ããªãã¼ãããã ãã require 'net/telnet' telnet = Net::Telnet.new({ "Host" => "localhost", "Port" => 4242 }){|c| print c} telnet.puts("content.location.reload(true)") telnet.close ã²ãããèªåãè¦ã¦ããURLã¨ãã¼ã¸ã¿ã¤ãã«ãè¨é²ããç³»ã¨ãç°¡åã«ä½ãããã ä»è¦ã¦ãããã¼ã¸ã®URLã¨ã¿ã¤ãã«ãåå¾ãããµã³ãã«ã require 'net/telnet'
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}