| ½Ã½ºÅÛ :: ½Ã°£ ÃÊ°ú SECULEUTÀ» »ç¿ëÇϵµ·Ï ½Ã½ºÅÛ ()À» ´·¯ ½Ã°£ ÃÊ°ú¸¦ Çã¿ëÇÕ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
½Ã½ºÅÛ :: ½Ã°£ ÃÊ°ú ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~chengang/
½Ã½ºÅÛ :: ½Ã°£ ÃÊ°ú ű×
½Ã½ºÅÛ :: ½Ã°£ ÃÊ°ú ¼³¸í
ÁöÁ¤µÈ ÈÄ¿¡ ½Ã°£ ÃÊ°ú¸¦ Çã¿ëÇÏ·Á¸é ½Ã½ºÅÛ ()À» È®ÀåÇÕ´Ï´Ù. System :: TimeoutÀº ÁöÁ¤µÈ ½Ã°£ ÈÄ¿¡ ½Ã°£ ÃÊ°ú¸¦ Çã¿ëÇϵµ·Ï System ()À» È®ÀåÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. ÀÌ´Â ¶ÇÇÑ ÁöÁ¤µÈ ÃÊ ÈÄ¿¡ ¸í·É Á¾·á¸¦ °Á¦ÇÏ´Â µ¥ ½±°Ô »ç¿ëÇÒ ¼öÀÖ´Â CLI µµ±¸ "½Ã°£ ÃÊ°ú"¸¦ Æ÷ÇÔÇÕ´Ï´Ù. ÀÌ ¸ðµâÀº ÄÚ¾î ÇÔ¼ö fork (), exec (), sleep ()À» ±â¹ÝÀ¸·ÎÇÕ´Ï´Ù. daemon.synopsis¿¡¼ system ()À» È£Ãâ ÇÒ ¶§ À¯¿ë ÇÒ ¼ö ÀÖ½À´Ï´Ù. ½Ã½ºÅÛ :: ½Ã°£ Á¦ÇÑ qw (½Ã½ºÅÛ system_ex system_log); system_ex ( "¼ö¸é 9"); # Invoke Core :: System, ½Ã°£ ÃÊ°ú Á¾·á System_EX ( "3", "Sleep 9"); # 3 ÃÊ ½Ã½ºÅÛ ( "3", "Sleep 9") ÀÌÈÄ¿¡ Á¦ÇÑ ½Ã°£ Á¾·á; # Perl Build-In System_log ( "3", Sleep 9 ")¸¦ ¿À¹ö·¹ÀÌÇÏ·Á´Â »ç¶÷µéÀÇ °æ¿ì System_EXÀÇ º°Äª¸¸ÀÌ # ÆÄÀÏ % Timeout - Timeout = 3 "ÀýÀü 9"#run ¸í·É "ÀýÀü 9"¹× 3 ÃÊ ÈÄ¿¡ ½Ã°£ ÃÊ°ú¸¦ ±â·ÏÇϽʽÿÀ. ¿ä±¸ »çÇ× : ¡¤ Perl.
½Ã½ºÅÛ :: ½Ã°£ ÃÊ°ú °ü·Ã ¼ÒÇÁÆ®¿þ¾î