Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ Ä¿ÇÇÇâÀÌ ³ª´Â *NIX
Ä¿ÇǴнº
½Ã½ºÅÛ/³×Æ®¿÷/º¸¾ÈÀ» ´Ù·ç´Â °÷
* HanIRCÀÇ #coffeenix ¹æ
[ Àåºñ ¹× ȸ¼± ÈÄ¿ø ]
HOME > ÇÁ·Î±×·¡¹Ö / °³¹ß µµ¿ò¸»
°Ë»ö : »çÀÌÆ® WHOIS À¥¼­¹ö Á¾·ù

À¥ ÇÁ·Î±×·¡¹Ö / PHP (19, ±Û 13, ÀÚ·á 15)
ÇÁ·Î±×·¡¹Ö Åø / IDE (12, ÀÚ·á 3)
¶óÀ̺귯¸® (3)
C, C++ (10, ÀÚ·á 11)
Java(ÀÚ¹Ù) (13, ±Û 1, ÀÚ·á 5)
Python (ÆÄÀ̽ã) (5, ÀÚ·á 2)
½© ÇÁ·Î±×·¡¹Ö(shell script, ¼¿) (8, ±Û 3, ÀÚ·á 4)
¿ÀǼҽº / ÇÁ·ÎÁ§Æ® (2)
Perl (ÆÞ) (7, ÀÚ·á 3)
ÀÓº£µðµå(embedded) (8, ±Û 1, ÀÚ·á 6)
¹öÀü°ü¸® / CVS (8, ±Û 1, ÀÚ·á 3)
Æ÷Æà / ¸¶À̱׷¹ÀÌ¼Ç (1, ÀÚ·á 1)
Assembly (¾î¼Àºí¸®) (3, ÀÚ·á 1)
µð¹ö±ë, µð¹ö±×(debug), µð¹ö°Å (4, ±Û 1, ÀÚ·á 3)
XML (2)
±âŸ¾ð¾î (2, ÀÚ·á 1)
¸ð¹ÙÀÏ(mobile, wap) (2, ÀÚ·á 1)

  expect ÇÁ·Î±×·¡¹Ö ¿¹ µÎ¹ø° ÀÛ¼ºÀÏ : 2003/11/04 17:29
 
  • ±Û¾´ÀÌ : ÁÁÀºÁøÈ£ ( http://coffeenix.net/ )
  • Á¶È¸¼ö : 12540
          [ ÀÌÀüÈ­¸é / ¼öÁ¤ ]   ºñ¹Ð¹øÈ£ :     Àμâ¿ë È­¸é
      97³â¿¡ ³ª¿ì´©¸® ¸®´ª½ºµ¿È£È¸¿¡ ¼ÒÀÎÀÌ ¾´ ±ÛÀÔ´Ï´Ù.
    °øÂ¥·Î »ß»ß È£ÃâÇÏ´Â ±â´ÉÀ» ±¸ÇöÇÑ °ÍÀε¥, Áö±ÝÀº ÀÇ¹Ì ¾ø°ÚÁö¿ä.
    ±× ¶§´Â »ß»ß È£ÃâÀ» guest·Î Á¢¼ÓÇؼ­µµ °¡´ÉÇß½À´Ï´Ù. ^^

    ±Ç¼ø¼±´ÔÀÌ ¾²½Å '¸®´ª½º ÆÄ¿ö Åø ·¹ÆÛ·±½º'(Áö±ÝÀº ÀýÆǵÊ)¿¡¼­µµ ÀοëµÈ ½ºÅ©¸³Æ®ÀÔ´Ï´Ù.
    ¾Æ·¡ºÎÅÍ 97³â¿¡ ¾´ ±ÛÀ̸ç, ¼öÁ¤¾øÀÌ ±×´ë·Î ¿Ã¸³´Ï´Ù.


    -----------------------------------------------------------------------------

        ³ª¿ì´©¸®ÀÇ È£Ãâ¸í·É¾î(bb)¸¦ ÀÌ¿ëÇÏ¿© È£ÃâÀ» ÇÏ´Â expect ½ºÅ©¸³Æ®ÀÔ´Ï´Ù.
      guest·Î ·Î±äÇÏ¿©µµ µÇ´Â °ÍÀº ¾Æ½ÃÁÒ? ID¾ø¾îµµ µÇ´Ï, ÀÌ ½ºÅ©¸³Æ®´Â ´©±¸³ª
      ÀÌ¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. Àü¿¡ Á¦°¡ 'äÆÃÁ·À» À§ÇÑ expect È°¿ë'À» ¾´ ÀûÀÌ Àִµ¥,
      ±× °Íº¸´Ù´Â ´õ À¯¿ëÇÑ ½ºÅ©¸³Æ®°¡ µÉ °Í °°±º¿ä.

        Á¤»óÀûÀ¸·Î Á¢¼ÓÀÌ µÇ¸é 10Ãʵµ ¾È°É¸®°í »ß»ß¸¦ Ä¡´Ï±î, ÀüÈ­·Î ÇÏ´Â °Íº¸´Ù
      ºü¸£°í, ¿ä±Ý(50¿ø?)µµ Àý¾àÀÌ µÇ°ÚÁÒ.

        ¾Æ·¡´Â ½ºÅ©¸³Æ®ÀÔ´Ï´Ù. ±âº»ÀûÀÎ ¸í·ÉÀ» ÀÌ¿ëÇßÀ¸´Ï, ÀüüÀûÀÎ ¼³¸íÀº ÇÏÁö
      ¾Ê°Ú°í, ºÎºÐÀûÀÎ ¼³¸í¸¸ ÇÏ°Ú½À´Ï´Ù.
    >---------------------------------------------------------------
    #!/usr/bin/expect --
    #
    # »ß»ßÄ¡±â bb v0.1
    # Made by ÁÁÀºÁøÈ£(truefeel)
    # 1997. 11.

    set ID        guest
    set BELL      \007
    set bbnum     [lindex $argv 0]
    set renum     [lindex $argv 1]
    set nownuri   nownuri.net
    set logintime 600

    if { $renum == "" } {
        send_user "»ç¿ë¹ý : bb \[¼ö½ÅÈ£Ãâ¹øÈ£\] \[¿¬¶ô¹ÞÀ» ¹øÈ£\]\n"
        exit
    }

    # -------------------------------------------
    # ³ª¿ì´©¸®¿¡ Á¢¼Ó
    # -------------------------------------------
    spawn telnet -8 $nownuri
    expect -timeout $logintime "³ª ¿ì ID :"
    sleep 1
    send "$ID\r"
    expect "Enter"
    sleep 1
    send "\r"

    # -------------------------------------------
    # »ß»ß È£Ãâ
    # -------------------------------------------
    expect "¼±ÅÃ>"
    send "bb\r"
    expect " :"
    send "1\r"
    expect "¹øÈ£ :"
    send "$bbnum\r"
    expect "¹øÈ£ :"
    send "\r"

    expect -re "Ãë¼ÒÇÕ´Ï´Ù." {
               expect "¼±ÅÃ>"
               sleep 1
               send "bye\r"
               expect " ------"
               send_user $BELL
               sleep 1
               send_user $BELL
               send_user "È£Ãâ ¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä.\n"
          } -re "¹øÈ£ÀÔ´Ï´Ù." {
               expect " :"
               send "$renum\r"
               expect "¼±ÅÃ>"
               sleep 1
               send "bye\r"
          }
    interact
    >---------------------------------------------------------------

      * set bbnum     [lindex $argv 0]  <-- ù¹ø° Àμö($argv 0)¸¦ $bbnum¿¡ ÀúÀå
      * set renum     [lindex $argv 1]  <-- µÎ¹ø° Àμö($argv 1)¸¦ $renum¿¡ ÀúÀå
      * if { $renum == "" } {  ...  }   <-- 2°³ÀÇ Àμö ÀÔ·ÂÀÌ ¾øÀ¸¸é µµ¿ò¸» Ãâ·Â
      * set logintime 600
        expect -timeout $logintime "³ª ¿ì ID :"
        <-- ÀÌ ºÎºÐ¿¡¼­ ´«¿©°Ü º¼ °ÍÀº -timeout ¿É¼Ç ÁöÁ¤ÀÔ´Ï´Ù. ³ª¿ì´©¸®ÀÇ °æ¿ì
            Á¢¼ÓÀÌ ÇÑÂü ÈÄ¿¡ µÇ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. ¸¸¾à -timeout ¿É¼ÇÀ» ¾²Áö ¾Ê¾Ò
            À» ¶§, ³ª¿ì Á¢¼ÓÀÌ ´Ê°Ô µÈ´Ù¸é ´ÙÀ½ ÁÙ(send "$ID\r")¿¡ ÀÖ´Â $ID¸¦
            ¾û¶×ÇÑ °÷¿¡ º¸³»°Ô µË´Ï´Ù. À̸¦ ¸·±âÀ§ÇÑ °ÍÀÌÁÒ. ¿©±â¼­´Â 10ºÐ(600ÃÊ)
            µ¿¾È '³ª ¿ì ID'¸¦ ±â´Ù¸³´Ï´Ù. ¹°·Ð ãÀ¸¸é ¹Ù·Î ´ÙÀ½À¸·Î ³Ñ¾î°¡°í¿ä.

      * expect -re "Ãë¼ÒÇÕ´Ï´Ù." {
        ...    
        send_user $BELL
        sleep 1
        send_user $BELL
        send_user "È£Ãâ ¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇϼ¼¿ä.\n"
        <-- È£Ãâ¹øÈ£¸¦ Á¦´ë·Î ÀÔ·ÂÇÏÁö ¾Ê¾ÒÀ» °æ¿ì('Ãë¼ÒÇÕ´Ï´Ù'¸¦ ã¾ÒÀ» °æ¿ì)
            »à ¼Ò¸®($BELL)¸¦ µÎ ¹ø ³»°í, ¸Þ½ÃÁö¸¦ Ãâ·ÂÇÕ´Ï´Ù.

        ÀÌ Á¤µµ¸é ¼³¸íÀº ´Ù µÈ °Í °°±º¿ä. ÀÌ ½ºÅ©¸³Æ®´Â ÀÔ·ÂÇÑ Àμö(È£Ãâ¹øÈ£, ¹ÞÀ»
      ÀüÈ­¹øÈ£)°¡ ¼ýÀÚÀÎÁö, ¹®ÀÚÀÎÁö´Â ÆÇ´ÜÇÏÁö ¾Ê½À´Ï´Ù. ÀÌ°Ç »ç¿ëÀÚ°¡ ¾Ë¾Æ¼­
      Á¤È®È÷ ÀÔ·ÂÇؾßÇÕ´Ï´Ù.
      Ä¿ÇǴнº Ä«Æä ÃÖ±Ù ±Û
    [12/25] Àνº&#5
    [10/20] Cross Compiler ±ò
    [07/14] SSL ¬¡¬°
    [04/26] Re: µµ½ºÈ­¸é ¿ø°ÝÁ¶Á¾ ¿©ºÎ
    [04/25] µµ½ºÈ­¸é ¿ø°ÝÁ¶Á¾ ¿©ºÎ
    [10/30] Cshell¿¡¼­ ³­¼ö ¼³Á¤
    [10/23] °øÇ×öµµÁÖ½Äȸ»ç SE ±¸ÀÎ Ëì
    [01/26] Re: wgetÀ¸·Î ´Ù¸¥¼­¹ö¿¡ÀÖ´Â µð·ºÅ丮¸¦ °¡Á®¿À·Á°íÇÕ´Ï´Ù.
    [01/25] wgetÀ¸·Î ´Ù¸¥¼­¹ö¿¡ÀÖ´Â µð·ºÅ丮¸¦ °¡Á®¿À·Á°íÇÕ´Ï´Ù.
    [01/11] ƯÁ¤ ¾Èµå·ÎÀ̵å WebView ¹öÀü¿¡¼­ SSL ¹®Á¦ (WebView ¹ö±×)
    [08/01] DNS forwarder (Àü´ÞÀÚ) ¼­¹ö¸¦ ÅëÇؼ­ Äõ¸®ÇÏ¸é ¿ª¹æÇâÀ» ¹Þ¾Æ¿ÀÁú ¸øÇÕ´Ï´Ù.
    [05/16] (ÁÖ)ÈÄÀÌÁî ½Ã½ºÅÛ¿£Áö´Ï¾î (°æ·ÂÀÚ) ¸ðÁý
    [02/15] [AWS] Cloudfront edge È®ÀÎÇϱâ
    [01/20] Mobile Service/eCommerce ±â¾÷¿¡¼­ Server / Java / PHP °³¹ßÀÚ ±¸ÀÎ
    [01/11] źźÇÑ ÆÛºí¸®½Ì ¸ð¹ÙÀϱâ¾÷¿¡¼­ Mobile °³¹ßÀÚ¸¦ ¸ð½Ê´Ï´Ù.
      New!   ÃÖ±Ù¿¡ µî·ÏÇÑ ÆäÀÌÁö
      KiCad EDA Suite project (Free/Libre/Open-Source EDA Suite) (CAD)
      ¿ÀÇÂij½ºÄÉÀ̵å ijµå (OpenCASCADE CAD)
      QCad for Windows --- GNU GPL (Free Software)
      The Hello World Collection
      IPMI¸¦ È°¿ëÇÑ ¸®´ª½º ¼­¹ö°ü¸®
      DNS ¼³Á¤ °Ë»ç
      nagiosgraph ¼³Ä¡ ¹æ¹ý
      Slony-I ¼³Ä¡ ¹æ¹ý (postgresql replication tool)
      Qmail±â¹ÝÀÇ Anti spam ½Ã½ºÅÛ ±¸ÃàÇϱâ
      clusterssh

    [ ÇÔ²²ÇÏ´Â »çÀÌÆ® ]




    ¿î¿µÁø : ÁÁÀºÁøÈ£(truefeel), ¾ß¼ö(yasu), ¹ü³ÃÀÌ, sCag
    2003³â 8¿ù 4ÀÏ~