æè¿Perlããå¤é¨ã³ãã³ããå®è¡ããå ´åã¯ãopenãsystemãªã©ã使ããã«IPC::Cmdãè¯ã使ã£ã¦ããã
ç¹ã«æ·±ãçç±ã¯ãªããã ãã©ã
- IPC::Cmdã¯5.009005ããã³ã¢ã¢ã¸ã¥ã¼ã«ã«å ¥ã£ã¦ãã
- ãããªãã«ç¶ºéºã«æ¸ãã
- $IPC::Cmd::VERBOSEãçã«ãã¦ããã°ãå®è¡ããã³ãã³ãã®å 容ãåºåãã¦ããã
- æ»ãå¤ããæ¨æºåºå,æ¨æºã¨ã©ã¼åºå,ãã®ä¸¡æ¹ãããæ¹è¡åºåãã§é åã«ãªã£ã¦æ»ã£ã¦ããã®ãå°å³ã«ä¾¿å©
ãï¼ããããã¡ãã ã¨ãè¿ãè¡ãã«å¤æãããã®ã§ãæããããã©ãã¡ãã£ã¦è¨ãããã«ãã¦ãï¼id:amachangï¼
ã¨ãããªããå¤å1çªç®ã®çç±ã大ãããã³ã¢ã¢ã¸ã¥ã¼ã«ã«åã£ã¦ãã®ãããããªãã
ãã°åãã«ã¯Log::Message::Simple使ãããã«ãªã£ããã
ã¾ãLog::Message::Simpleã¯ãdaemontoolsä»å±ã®multilogã¨ç¸æ§ãè¯ãã¨ããçç±ããããã ãã©ã
ã¡ãªã¿ã«ã³ãã³ãã®åºåãã¤ã³ã¿ã©ã¯ãã£ãã«å¦çãããã¨ãã¯ãæã¯IPC::Runã使ã£ã¦ãããã©æè¿ã¯IPC::Open3ã使ã£ã¦ããçç±ã¯IPC::Runãã³ã¢ã¢ã¸ã¥ã¼ã«ãããªãããã£ã¦ã ããªãã ãã©ãã
ãã¨File::*ç³»ãè¯ã使ãããã«ãªã£ããªããä»ã¾ã§ã·ã§ã«ã¹ã¯ãªããã§æ¸ãã¦ããããªãã®ãPerlã§æ¸ãããã«ãªã£ãããã ã¨æããã¦ã§ãã¢ããªä»¥å¤ã¯ã»ã¨ãã©ã·ã§ã«ã¹ã¯ãªããã§ããã¨æ¸ãã¡ããã¿ã¤ããªãã ãã©ããã£ã±ãã¾ã«é¢åãããã£ã¦æãã¨ãããããã ããããããªã¨ãPerlã§æ¸ããã®ã¯è¯ãã
ãã¾ãã ãã©ãFile::Fetchã§ãªã¢ã¼ããã¡ã¤ã«ãåå¾ã§ããã®ãæè¿ç¥ã£ããã ãã©ãLWPã¨ãwgetã¨ãcurlã¨ããèªåçã«é¸ãã§ãããããç°å¢ã«ãã£ã¦ã¯å°å³ã«ä¾¿å©ã ãããã¾ãã§ãURI::Fetchã¨éã£ã¦ãã£ãã·ã¥ã§ããããçµå±IO::All使ãããããã¾ãåºçªç¡ããã ãã©ãã
ã¨ããããã§èª°ã«ãèããã¦ãªããã©ãæè¿ã®ãã¤Perlã¢ã¸ã¥ã¼ã«äºæ ã軽ã話ãã¦ã¿ã¾ããã