68user's page ·Ç¼¨ÈÄ

Prev< No. 677¡Á728> Next  [ºÇ¿·È¯¸À¤ËÌá¤ë] [²áµî¥í¥°°ìÍ÷]
No. 677 # mm 2000/01/20 (ÌÚ) 03:19
>ÉáÄÌ¤Ë i/viii ¤òÆþÎϤ¹¤ë¤È 115/116¶è¤Î¥³¡¼¥É¤Ë¤Ê¤Ã¤Æ
>¤·¤Þ¤¦¤ó¤Ç¤·¤ç¤¦¤«?
ÉáÄ̤«¤É¤¦¤«¤Ï¤è¤¯ÃΤé¤Ê¤¤¤ó¤Ç¤¹¤¬¡¢¡Ö¤¤¤Á¡×¤ò´Á»úÊÑ´¹¤·¤Æ¤â
Âçʸ»ú¤ÎI¤·¤«½Ð¤ÆÍè¤Ê¤¤¤Î¤Ç¡¢MS-IME¤Î¡Ö´Á»ú¼­Åµ¡×¤È¤¤¤¦¥¦¥¤¥ó¥É¥¦¤ò³«¤¤¤Æ¡¢
¡ÖÆüìʸ»ú¡×¥¿¥°¤ÎÃ椫¤é¾®Ê¸»ú¤Î¥í¡¼¥Þ¿ô»ú¤òÁª¤Ö¤È115¶è¤ÎúÀ(i)¤¬ÆþÎϤµ¤ì¤Þ¤¹¡£

¤³¤Î¡ÖÆüìʸ»ú¡×¥¿¥°¤Ï¡¢8¶è¤Î·ÓÀþ¤ä13¶è¤Îµ­¹æ¤Î°ìÍ÷¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤ó¤Ç¤¹¤¬
¡ÊÂçʸ»ú¤Î¥í¡¼¥Þ¿ô»ú¤â13¶è¤Î¤â¤Î¤Ç¤¹¡Ë¡¢¾®Ê¸»ú¤À¤±¤¬115¶è¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
ʸ»ú¥³¡¼¥Éɽ¤È¤¤¤¦¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ò»È¤¦°Ê³°¤Ë¡¢92¶è¤Îüñ¤òÆþÎϤ¹¤ëÊýË¡
¤òÃΤê¤Þ¤»¤ó¡Ä¥Û¥ó¥È¤Ë»ä¤¬ÃΤé¤Ê¤¤¤À¤±¤«¤âÃΤì¤Þ¤»¤ó¤¬¡Ê¶ì¾Ð¡Ë

>¤Ç¡¢mm ¤µ¤ó¤Ï¤½¤ì¤ò¥³¥Ô¡¼¤·¤Æ
¥Ô¥ó¥Ý¡Á¥ó¡ª
¸å¤ÇÄ´¤Ù¤è¤¦¤È»×¤Ã¤Æ¡¢Ëº¤ì¤Æ¤Þ¤·¤¿¡Ê¶ì¾Ð¡Ë


>¤Ç¡¢jcode::convert ¤Ï¡¢SJIS ¤Î 0xFA40 (i) ¤ò 0xFAC0 ¤Ë
>ÊÑ´¹¤¹¤ë¤è¤¦¤Ç¤¹¤¬¡¢¤³¤ì¤Ï¿ʬ´Ö°ã¤Ã¤¿·ë²Ì¤Ç¤Ï¤Ê¤¤¤«¤È»×¤¤¤Þ¤¹¡£
jcode.pl ¤ÎÊÑ´¹Éôʬ¤Ã¤Æ¡¢ÇÁ¤¤¤¿¤³¤È¤Ê¤«¤Ã¤¿¡Ê¶ì¾Ð¡Ë

ÀÖ¿§¤Îʸ»ú¤Ï ¡ÖWindows µ¡¼ï°Í¸ʸ»ú¡×¤«¡¢¤¤¤ï¤æ¤ë¡ÖȾ³Ñ¥«¥Ê¡×¤Ç¤¹¡£ ¤³¤Î·Ç¼¨ÈĤǤϼ«Æ°ÊÑ´¹¤µ¤ì¤Þ¤¹¤¬¡¢º£¸å¤Ï»ÈÍѤ·¤Ê¤¤¤Ç²¼¤µ¤¤

No. 678 # goosan [E-mail] 2000/01/20 (ÌÚ) 09:12
¤½¤¦¤Ç¤¹¤Í¡£EUC¤À¤«¤éµÕ¤Ç¤¹¤Í¡£JIS¤Ë¤³¤À¤ï¤ê²á¤®¤Æ¤·¤Þ¤Ã¤¿¤è¤¦¤Ç¤¹¡£

>¤³¤Î·Ç¼¨ÈĤǤϡ¢ÆþÎÏʸ»úÎó¤ò jcode::convert ¤ò»È¤Ã¤Æ EUC ¤Ë
>ÊÑ´¹¤·¡¢EUC ¥³¡¼¥É¤Çµ¡¼ï°Í¸ʸ»ú¤Î¥Á¥§¥Ã¥¯¤ò¤·¤Æ¤¤¤Þ¤¹¡£
¥Õ¥©¡¼¥à¤¬Á÷½Ð¤·¤¿¥Ç¡¼¥¿¤¬¤É¤¦¤¤¤¦´Á»ú¥³¡¼¥É¤À¤Ã¤¿¤«¤È¤¤¤¦ÅÀ¤â
µ¤¤Ë¤Ê¤ê¤Þ¤¹¡£°ìÈ̤ˤϥե©¡¼¥à¤Î¤¢¤ë¥Ú¡¼¥¸¤ÈƱ¤¸´Á»ú¥³¡¼¥É¤Ë
¤Ê¤ë¤³¤È¤¬Â¿¤¤¤è¤¦¤Ç¤¹¤¬¡¢²¾¤Ë¤½¤¦¤À¤È¤¹¤ë¤È¡¢¥­¡¼¥Ü¡¼¥É¤«¤é
¥Õ¥©¡¼¥à¤ËÆþÎϤ·¤¿ºÝ¤Ë¤ÏSJIS¤À¤Ã¤¿¤Î¤¬¡¢¥Õ¥©¡¼¥à¤¬¥Ç¡¼¥¿¤ò
Á÷½Ð¤¹¤ëºÝ¤Ë¤ÏEUC¤ËÊÑ´¹¤µ¤ì¡¢jcode'convert()¤¬ÆþÎÏ´Á»ú¥³¡¼¥É¤Î
¼«Æ°È½Äê¤ò¤¹¤ëºÝ¤Ë¿¿ô·è¤ÎÏÀÍý¤ÇEUC¤ÈȽÄꤵ¤ì¡¢»ä¤¬jcode.pl¤ò
¸«¤ë¸Â¤ê¤Ç¤ÏEUC->EUC¤Ç¤Ï¥«¥Ê¤ÎȾ³Ñ<->Á´³ÑÊÑ´¹¤ò¤·¤Ê¤¤¸Â¤ê¤Ï
²¿¤â¤·¤Ê¤¤¤è¤¦¤Ê¤Î¤Ç¡¢jcode.convert()¤ÇMSB¤¬Î©¤Ã¤¿¤³¤È¤Ï
Í­¤êÆÀ¤Ê¤¤¤è¤¦¤Ç¤¹¡£

No. 679 # goosan [E-mail] 2000/01/20 (ÌÚ) 09:17
0xFA40¤¬EUC¤ËÊÑ´¹¤µ¤ì¤ëºÝ¤Ë¤É¤¦¤¤¤¦µóÆ°¤ò¤·¤¿¤«¤È¤¤¤¦ÅÀ¤â
ÌäÂê¤Ç¤¹¡£½ñ¤­Ëº¤ì¤Æ¤¤¤Þ¤·¤¿¡£

No. 680 # 68user 2000/01/20 (ÌÚ) 15:24
> Êä½õ´Á»ú (JIS X 0212) ¤ËÃÖ´¹¤¹¤ë¤Î¤â°ì¤Ä¤Î²ò¤Ê¤è¤¦¤Ç¤¹¤Í¡£
¤ª¤Ã¤È¡¢Â礭¤Ê´ª°ã¤¤¡£

¤³¤Î·Ç¼¨ÈÄ¤Ï (¤È¤¤¤¦¤è¤ê EUC-JP ¤Ï) 13,89¡Á92 ¶è¤ò°·¤¨¤Þ¤¹¤¬¡¢
115¡Á119 ¶è¤Îµ¡¼ï°Í¸ʸ»ú¤ÏÁ´¤Æ13,89¡Á92 ¶è¤ÎÊý¤Ë¤â´Þ¤Þ¤ì¤Æ
¤¤¤ë¤Î¤Ç¡¢jcode.pl ¤ò¤¤¤¸¤Ã¤Æ¡¢SJIS ¤Î 115¡Á119¶è¤ò
13,89¡Á92¶è¤ËÊÑ´¹¤¹¤ë¤è¤¦¤Ë¤¹¤ì¤Ð¤¤¤¤¤ï¤±¤Ç¤¹¤Í¡£

> jcode::convert ¤Ï¡¢SJIS ¤Î 0xFA40 (i) ¤ò 0xFAC0 ¤Ë
> ÊÑ´¹¤¹¤ë¤è¤¦¤Ç¤¹¤¬
ºòÆü¤Ï³Î¤«¤Ë¼ê¤â¤È¤Ç³Îǧ¤·¤¿¤Ä¤â¤ê¤À¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢
º£Æü»î¤·¤Æ¤ß¤ë¤È jcode::convert(*,'euc') ¤Ç¡¢
SJIS ¤Î 0xFA40 ¤¬ 0x13C0 (¤¿¤Ö¤ó) ¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£

> ¥Õ¥©¡¼¥à¤¬Á÷½Ð¤·¤¿¥Ç¡¼¥¿¤¬¤É¤¦¤¤¤¦´Á»ú¥³¡¼¥É¤À¤Ã¤¿¤«
> ¤È¤¤¤¦ÅÀ¤âµ¤¤Ë¤Ê¤ê¤Þ¤¹¡£
¤³¤³¤â´Þ¤á¤ÆºÆÅÙ¥Á¥§¥Ã¥¯¤·¤Æ¤ª¤­¤Þ¤¹¡£

> ÉáÄ̤«¤É¤¦¤«¤Ï¤è¤¯ÃΤé¤Ê¤¤¤ó¤Ç¤¹¤¬¡¢¡Ö¤¤¤Á¡×¤ò´Á»úÊÑ´¹¤·¤Æ¤â
¤Ê¤ë¤Û¤É¡£115¡Á119 ¶è¤Ø¤ÎÂбþ¤Ïɬ¿Ü¤Ç¤¹¤Í¡£¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£

> ´Ö°ã¤¤¤Ê¤¯115¶è¤ÏFA¤Ë¤Ê¤Ã¤Æ¤Þ¤¹¡£
¤³¤ì¤Ï¸þ¤¦¤ËÏ¢Íí¤·¤Æ¤ª¤­¤Þ¤¹¡£

No. 681 # goosan [E-mail] 2000/01/20 (ÌÚ) 17:43
>ºòÆü¤Ï³Î¤«¤Ë¼ê¤â¤È¤Ç³Îǧ¤·¤¿¤Ä¤â¤ê¤À¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢
>º£Æü»î¤·¤Æ¤ß¤ë¤È jcode::convert(*,'euc') ¤Ç¡¢
>SJIS ¤Î 0xFA40 ¤¬ 0x13C0 (¤¿¤Ö¤ó) ¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£
»ä¤¬»î¤·¤Æ¤ß¤ë¤È¡¢0x13A1¤Ë¤Ê¤ê¤Þ¤·¤¿¡£

0xFA40¤¬¼«Æ°È½Äê¤ÇSJIS¤È¤µ¤ì¤ë¤Î¤Ï´Ö°ã¤¤¤Ê¤¤¤È»×¤¤¤Þ¤¹¡£
>$re_sjis_c = '[\201-\237\340-\374][\100-\176\200-\374]';
¤Ï0xFA40¤ò´Þ¤ß¤Þ¤¹¤«¤é¡£
°ìÊý¡¢
>$re_euc_c = '[\241-\376][\241-\376]';
¤Ç¤Ï´Þ¤Þ¤ì¤Þ¤»¤ó¡£

No. 682 # 68user 2000/01/20 (ÌÚ) 18:25
¤¢¡¢¤½¤¦¤Ç¤¹¡£¥¹¥¯¥ê¥×¥È¤¬¼ê¸µ¤Ë¤Ê¤¤¤Î¤Ç¥¢¥ì¤Ç¤¹¤¬¡¢
¿ʬ 0x13A1 ¤Ç¤·¤¿¡£¤Ï¤Æ¡¢ºòÆü¸«¤¿ 0xFAC0 ¤Ï¸¸¤Ç¤¢¤Ã¤¿¤«?

°ìÈÖ´Êñ¤Ê¤Î¤Ï¡¢require 'jcode.pl' ¤·¤Æ¡¢jcode::init ¤Ç
½é´ü²½¤µ¤ì¤¿¸å¤Ë %jcode::s2e ¤Ë115¡Á119¶èÁêÅö¤Î¥Æ¡¼¥Ö¥ë¤ò
Äɲ乤뤳¤È¤«¤Ê¤¡¡£
# jcode.pl ¤Ï¤¤¤¸¤ê¤¿¤¯¤Ê¤¤¤«¤é¤Ê¤ó¤À¤±¤É¡¢(¥³¡¼¥Ç¥£¥ó¥°ºîË¡
# ¤È¤·¤Æ¤Ï) ¤è¤¯¤Ê¤¤¡Ä¤Ç¤¹¤è¤Í¡£

No. 683 # goosan 2000/01/20 (ÌÚ) 20:02
»ä¤Î¾ì¹ç¡¢
---
#!/usr/local/bin/perl
require "jcode.pl";
while(<>) {
    &jcode'convert(*_, "euc");
    print;
}
---
¤³¤ÎÄøÅ٤Υ¹¥¯¥ê¥×¥È¤Ç¤¹¡£ÍפÏÂ礷¤¿¤³¤È¤ä¤Ã¤Æ¤¤¤Þ¤»¤ó¡£(^^;

ÆþÎϤ¬
000000 FA 40 0A
¤Î»þ¤Ë¡¢¥¹¥¯¥ê¥×¥È̾ kconv.pl ¤È¤·¤Æ
% ./kconv.pl test > test.e
¤È¤·¤¿·ë²Ì¡¢
000000 13 A1 0A
¤È¤¤¤¦½ÐÎϤˤʤê¤Þ¤·¤¿¡£

No. 684 # ¥È¥í¥Ô¥«¥ë 2000/01/21 (¶â) 17:48
ÃΤäƤ¤¤¿¤é¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£
¥·¥§¥ë¤ò»ÈÍѤ·¤Æ£Ó£Ñ£Ì£Ð£Ì£Õ£Ó¤Î¤ä¤êÊý¤Ë¤Ä¤¤¤Æ¤Ç¤¹¤¬¡¢

°Ê²¼¤Î(1)¤Î¥·¥§¥ë¤«¤é£ó£ñ£ì£ð£ì£õ£ó¤Ë¤Æ£Ï£Ò£Á£Ã£Ì£Å¤ËÀܳ¤·
(2)¤Î¥Õ¥¡¥¤¥ë¤Î£ó£ñ£ìʸ¤ò¼Â¹Ô¤µ¤»¤¿¤¤¤Î¤Ç¤¹¤¬¡¢
¤½¤Î»þ¤Ë(2)¤Î¾ò·ïʸ¤Î'xxxxxxx'¤ò(1)¤Î¥·¥§¥ë¤«¤é°ú¿ô¤È
¤·¤Æ(2)¤ËÅϤ·¤¿¤¤¤Î¤Ç¤¹¤¬¤É¤¦¤·¤¿¤éÎɤ¤¤«¤ï¤«¤ê¤Þ¤¹¤Ç
¤·¤ç¤¦¤«¡©

¤Þ¤¿¡¢(2)¤Î£ó£ñ£ìʸ¤Ë¤ÆÆÀ¤¿¾ðÊó¤ò(1)¤Î¥·¥§¥ë¤ËÍ¿¤¨¤ë¾ì¹ç
¤Ï¤É¤¦¤¹¤ì¤ÐÎɤ¤¤Ç¤¹¤«¡©

(1)aaaa.sh¥Õ¥¡¥¤¥ë
--------------------------------------------------
sqlplus user/passward @bbbb.sql

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


(2)bbbb.sql¥Õ¥¡¥¤¥ë
--------------------------------------------------
select item1 from use_table where item2 = 'xxxxxxx'

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

ÀÖ¿§¤Îʸ»ú¤Ï ¡ÖWindows µ¡¼ï°Í¸ʸ»ú¡×¤«¡¢¤¤¤ï¤æ¤ë¡ÖȾ³Ñ¥«¥Ê¡×¤Ç¤¹¡£ ¤³¤Î·Ç¼¨ÈĤǤϼ«Æ°ÊÑ´¹¤µ¤ì¤Þ¤¹¤¬¡¢º£¸å¤Ï»ÈÍѤ·¤Ê¤¤¤Ç²¼¤µ¤¤

No. 685 # 68user 2000/01/21 (¶â) 20:21
¤³¤ì¤Ï SQL ¤ÎÏäǤ¹¤«? ¤Ê¤é¤ÐËͤˤϤ狼¤ê¤Þ¤»¤ó¡£
¤¸¤ã¤Ê¤¯¤Æ¡¢¤¢¤ë¥Õ¥¡¥¤¥ë¤ÎÆâÍƤΰìÉô¤ò¥³¥Þ¥ó¥É¥é¥¤¥ó¤Î°ú¿ô¤È¤·¤Æ
ÅϤ·¤¿¤ê¡¢½ÐÎÏ·ë²Ì¤ò¥³¥Þ¥ó¥É¥é¥¤¥ó¤Î°ú¿ô¤È¤·¤ÆÅϤ·¤¿¤ê¡¢¤È¤¤¤¦
¤³¤È¤Ç¤¹¤«? ¤Ä¤Þ¤ê¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Î½ñ¤­Êý¤ò¼ÁÌ䤷¤Æ¤¤¤ë¤Î¤Ç¤¹¤«?

¤â¤·¸å¼Ô¤Ê¤é¡¢¤Á¤ç¤Ã¤È°ÕÌ£¤¬ÄϤá¤Ê¤¤¤Ç¤¹¡£
    ¡Ö¤â¤·¥Õ¥¡¥¤¥ë¤ÎÆâÍƤ¬ xxxxx ¤À¤È¤·¤¿¤é¡¢¤½¤ÎÃ椫¤é yyy ¤ÎÉôʬ¤Î¼è¤ê½Ð¤·¡¢
        ºÇ½ªÅª¤Ë zzz user/passward @bbbb.sql xxxxx ¤È¤¤¤¦É÷¤Ë¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤¿¤¤¡×
¤Ê¤É¤ÈÎã¤ò½ñ¤¤¤Æ²¼¤µ¤¤¡£

> SJIS ¤Î 0xFA40
¤Ç¤Ï¡¢¤Ê¤¼¥Õ¥¡¥¤¥ë¤Ë¤Ï 0xFAC0 ¤¬½ñ¤«¤ì¤Æ¤¤¤ë¤ó¤À¤í¤¦?

No. 686 # gama [URL] [E-mail] 2000/01/22 (ÅÚ) 02:41
µÕlink ¤è¤êÁ̤äÆÅо줵¤»¤Æ¤¤¤¿¤À¤­¤Þ¤¹¡£

¤É¤¦¤â...»²¹Í¤Ë¤Ê¤Ã¤Æ¤¦¤ì¤·¤¤¤Ç¤¹¡£¡ä»²¹Í¤Ë¤Ê¤Ã¤¿Êý

·É°¦¤¹¤ë¡¢68user ¤µ¤ó¤È¤³¤Î·Ç¼¨ÈÄ¤Ç URL ½ñ¤¤¤Æ¤¤¤¿¤À¤¤¤Æ´¶·ã¤Ç¤¹¡£


¤¢¡¼¤È¡¢Í­¼±¼Ô·Ï¤«¤é·ù¤ï¤ì¡¢UG ·Ï¤«¤é¤Ï¡¢¤â¤Ã¤È¡¢¤¢¤Ö¤Ê¤¤¾ðÊó¤ò
¤È¤ÎÀ¼¤ò¤¤¤¿¤À¤¯²æ¤¬ Web ¤Ç¤¢¤ê¤Þ¤¹(^^;;;

¤µ¤Æ¡¢jcode.pl ¤Ç¡¢sjis ¤È¡¡EUC ¤È¤ÎȽÊ̤ˤĤ¤¤Æ...

¤«¤Ä¤Æ¡¢È¾³Ñ¥«¥Ê¤ò jcode.pl ¤Ç°·¤¤¤¿¤¤¤¿¤«¤Ã¤¿¤Î¤Ç¡¢
¤¤¤í¤¤¤í»î¹Ôºø¸í¤·¤¿·ë²Ì¤¬¡¢

http://www2d.biglobe.ne.jp/~gama/cgi/jcode/jcode.htm

¤Ë¤¢¤ê¤Þ¤¹¡£

¼«Ê¬¾¡¼ê¤ËȽÊ̤¹¤ë¥ë¡¼¥Á¥ó¤ò ÊѤ¤·¤Æ¤¤¤Þ¤¹¡£

¤´»²¹Í¤Ë¤Ê¤ì¤Ð¡¢¹¬¤¤¤Ç¤¹¡£

No. 687 # 68user 2000/01/23 (Æü) 02:43
> ·É°¦¤¹¤ë¡¢68user ¤µ¤ó¤È¤³¤Î
¤â¤Á¤Ã¤È°Î¤¤¿Í¤ò·É°¦¤·¤Æ²¼¤µ¤¤ :-)

> ¼«Ê¬¾¡¼ê¤ËȽÊ̤¹¤ë¥ë¡¼¥Á¥ó¤ò ÊѤ¤·¤Æ¤¤¤Þ¤¹¡£
¤Ç¤ÏÁá®ÇÒ¸«¡Ä¤È»×¤Ã¤¿¤é¡¢getcode.pl ¤¬ not found ¤Ê¤è¤¦¤Ç¡Ä(^^;

No. 688 # 68user [URL] [E-mail] 2000/01/23 (Æü) 03:37
Á°¤Î¿Í¤Î FORM ÆâÍƤ¬»Ä¤Ã¤Æ¤·¤Þ¤¦¤Î¤È¡¢cookie ¤Î¥Ç¡¼¥¿¤¬
´Ö°ã¤Ã¤Æ¤¿¤Î¤ò½¤Àµ¡£¤É¤¦¤«¤Ê?

No. 689 # muro 2000/01/23 (Æü) 19:04
½é¤á¤Þ¤·¤Æ¡£CGI(perl¥¹¥¯¥ê¥×¥È)¤Î¤³¤È¤ÇÄ´¤Ù¤´¤È¤ò¤·¤Æ¤¤¤¿¤é¤¿¤É¤êÃ夭¤Þ¤·¤¿¡£
¤Ç¤¹¤¬´Î¿´¤Î¤½¤ÎÄ´¤Ù¤´¤È¤Ë¤Ä¤¤¤Æ¤Ï¤Ê¤«¤Ê¤«»×¤Ã¤¿¤è¤¦¤Ê¥Ú¡¼¥¸¤¬¸«¤Ä¤«¤é¤º¡¢¤Á¤ç¤Ã¤Èº¤¤Ã¤Æ¤ª¤ê¤Þ¤¹¡£
°ì¸«¤µ¤ó¤Ë¤Æ¶²½Ì¤Ç¤¹¤¬¡¢¤Ç¤­¤¿¤é¤´½õ¸À²¼¤µ¤¤¡£

²¿¤«¤È¤¤¤¦¤È¡¢¡ÖHTTP¤Î¡Ê¥ê¥¯¥¨¥¹¥È¡Ë¥Ø¥Ã¥À¡×¤Ë¤Ä¤¤¤Æ¤Ç¤¹¡£Ìõ¤¢¤Ã¤ÆWeb¥Ú¡¼¥¸¤ò¼èÆÀ¤¹¤ë¥¹¥¯¥ê¥×¥È¤ò¼«Á°¤Ç
ÍÑ°Õ¤¹¤ëɬÍפ¬¤¢¤ë¤Î¤Ç¤¹¤¬¡¢¤Þ¤µ¤«Get¤À¤±Á÷¤ë¤Ã¤Æ¤¤¤¦²£Ë½¤Ê¤³¤È¤Ï¤µ¤¹¤¬¤Ë¤·¤¿¤¯¤Ê¤¤¤Î¤Ç¡£¡£¡£(--;

¡¦HTTP(Í×µá)¥Ø¥Ã¥À¤Î°ìÍ÷¡Ü²òÀâ
¡¦Ä̾ï¤Î¥Ö¥é¥¦¥¶¤¬Á÷¿®¤·¤Æ¤¤¤ë¥Ø¥Ã¥À¤Ë¤Ä¤¤¤Æ

¤È¤¤¤Ã¤¿¾ðÊ󤬵­ºÜ¤µ¤ì¤Æ¤¤¤ë¥Ú¡¼¥¸¤òõ¤·¤Æ¤ª¤ê¤Þ¤¹¡£

¤â¤Á¤í¤ócgi¤Ê¤É¤Ç´Ä¶­ÊÑ¿ô°ìÍ÷¤òɽ¼¨¤µ¤»¤¿·ë²Ì¡Ê±þÅú¥Ø¥Ã¥À¡Ë¤È´ðËÜŪ¤ËÂ纹¤¬¤Ê¤¤¤³¤È¤Ï
¸¤¸¤Æ¤ª¤ê¤Þ¤¹¤¬¡¢¤ä¤Ï¤ê°ìÅÙ³Îǧ¤·¤Æ¤ª¤­¤¿¤¤¤Î¤Ç¤¹¡£

¤Þ¤¿¡¢¼êË¡¤òÊѤ¨¤Æ¡¢LWP¤Ê¤É¤Î¥â¥¸¥å¡¼¥ë¤Ç¥Ø¥Ã¥À¤ò¸ÄÊÌÀßÄê¤Ç¤­¤ë¤«¤É¤¦¤«¤Ê¤É¤âÄ´¤Ù¤Æ¤ß¤ë¤Ä¤â¤ê¤Ç¤¹¡£
¤³¤ÎÊդξðÊó¤Ç¤â¹½¤¤¤Þ¤»¤ó¤Î¤Ç¤ª´ê¤¤¤·¤Þ¤¹¡£

°Ê¾å¡¢ÂçÊѤ郎¤Þ¤Þ¤Ê¼ÁÌä¤Ç¤¹¤¬¡¢¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£
¡ôRFC¤ò¸«¤í¤Ã¤Æ¤¤¤¦¤Î¤Ï¤´´ªÊÛ²¼¤µ¤¤¡£(^^;

No. 690 # 68user [URL] [E-mail] 2000/01/23 (Æü) 23:51
> ¡¦Ä̾ï¤Î¥Ö¥é¥¦¥¶¤¬Á÷¿®¤·¤Æ¤¤¤ë¥Ø¥Ã¥À¤Ë¤Ä¤¤¤Æ
http://X68000.startshop.co.jp/~68user/cgi-bin/wwwboard.cgi?log=658
¤ÇÍѤÏ­¤ê¤Þ¤¹¤«?

> ¡¦HTTP(Í×µá)¥Ø¥Ã¥À¤Î°ìÍ÷¡Ü²òÀâ
RFC¡Ä¡£¤â¤·¶â¤òʧ¤Ã¤Æ¤â¤¤¤¤¤Ê¤é http://www.oreilly.co.jp/BOOK/webcli.htm

> LWP¤Ê¤É¤Î¥â¥¸¥å¡¼¥ë¤Ç¥Ø¥Ã¥À¤ò¸ÄÊÌÀßÄê¤Ç¤­¤ë¤«¤É¤¦¤«
¤È¤ê¤¢¤¨¤º
    perldoc LWP::UserAgent
    perldoc HTTP::Headers
    perldoc HTTP::Request
    perldoc URI::URL
¤ò¸æ°ìÆɲ¼¤µ¤¤¡£

No. 691 # gama [URL] [E-mail] 2000/01/24 (·î) 21:50
>> ¼«Ê¬¾¡¼ê¤ËȽÊ̤¹¤ë¥ë¡¼¥Á¥ó¤ò ÊѤ¤·¤Æ¤¤¤Þ¤¹¡£
> ¤Ç¤ÏÁá®ÇÒ¸«¡Ä¤È»×¤Ã¤¿¤é¡¢getcode.pl ¤¬ not found ¤Ê¤è¤¦¤Ç¡Ä(^^;

Link ľ¤·¤Þ¤·¤¿(^^;;;

  http://www2d.biglobe.ne.jp/~gama/cgi/jcode/jcode.htm

No. 692 # goosan [E-mail] 2000/01/25 (²Ð) 10:57
http://www2d.biglobe.ne.jp/~gama/cgi/jcode/k-jis.htm
¤³¤Á¤é¤Î¥Ú¡¼¥¸¤Ê¤ó¤Ç¤¹¤¬¡¢JIS¤Ç8bit¤ÎȾ³Ñ¥«¥Ê¤ò»È¤Ã¤Æ¤¤¤ë
¤è¤¦¤Ç¤¹¤¬¡¢ESC ( I ¤Ç7bit¤Î¥«¥Ê¤ò»È¤¦¤Î¤¬ÉáÄ̤À¤È
»×¤¦¤Î¤Ç¤¹¤¬¡£³Ø¹»¤ÎFreeBSD-3.3+NC4.7¤Ç¤ÏSJIS¤äEUC¤Î¥Ú¡¼¥¸¤Ï
¸«¤¨¤ë¤Î¤Ç¤¹¤¬(Ⱦ³Ñ¥«¥Ê¤â)¡¢¤³¤³¤À¤±²½¤±¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
²È¤Î´Ä¶­(Win95+NN3.04)¤Ç¤Ï¤³¤³¤âʸ»ú²½¤±¤·¤Æ¤¤¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢
¥½¡¼¥¹¤ò¸«¤¿»þ¡¢È¾³Ñ¥«¥Ê¤ÎÉôʬ¤À¤±JIS¤¬²½¤±¤Æ¤¤¤Ê¤¤¤Î¤Ç
µ¤¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤·¤¿¡£

No. 693 # gama [E-mail] 2000/01/25 (²Ð) 23:40
> ¤³¤Á¤é¤Î¥Ú¡¼¥¸¤Ê¤ó¤Ç¤¹¤¬¡¢JIS¤Ç8bit¤ÎȾ³Ñ¥«¥Ê¤ò»È¤Ã¤Æ¤¤¤ë
> ¤è¤¦¤Ç¤¹¤¬¡¢ESC ( I ¤Ç7bit¤Î¥«¥Ê¤ò»È¤¦¤Î¤¬ÉáÄ̤À¤È
> »×¤¦¤Î¤Ç¤¹¤¬¡£³Ø¹»¤ÎFreeBSD-3.3+NC4.7¤Ç¤ÏSJIS¤äEUC¤Î¥Ú¡¼¥¸¤Ï
> ¸«¤¨¤ë¤Î¤Ç¤¹¤¬(Ⱦ³Ñ¥«¥Ê¤â)¡¢¤³¤³¤À¤±²½¤±¤Æ¤·¤Þ¤¤¤Þ¤¹¡£

¤¢¡¢¤Ê¤ë¤Û¤É¡¢¸½ºß¤Î¤Ï¼êµö¤Î Win95 ¾å¤Î¥¨¥Ç¥£¥¿¤Ç¥³¡¼¥ÉÊÑ´¹¤ò
½èÍý¤·¤¿·ë²Ì¤Ê¤Î¤Ç¡¢Â¿Ê¬È¾³Ñ¥«¥Ê¤¬ 8bit ¤Ê¤ó¤Ç¤¹¤Í¡£

¤º¡¼¤Ã¤È¡¢¤½¤ì¤Ç¤¤¤¤¤È»×¤¤¤³¤ó¤Ç¤Þ¤·¤¿¡£

7bit Ⱦ³Ñ¥«¥Ê¤È¤«¤¤¤¦¤È¡¢20 ǯ°Ê¾å¤¯¤é¤¤¤Îµ¬³Ê¤È¤¤¤¦»×¤¤¤³¤ß¤¬¤¢¤Ã¤¿
¤ï¤±¤Ç¤¹¡£

> ²È¤Î´Ä¶­(Win95+NN3.04)¤Ç¤Ï¤³¤³¤âʸ»ú²½¤±¤·¤Æ¤¤¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢
> ¥½¡¼¥¹¤ò¸«¤¿»þ¡¢È¾³Ñ¥«¥Ê¤ÎÉôʬ¤À¤±JIS¤¬²½¤±¤Æ¤¤¤Ê¤¤¤Î¤Ç
  µ¤¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤·¤¿¡£

No. 694 # ¥ê¥å¥¦ [URL] [E-mail] 2000/01/28 (¶â) 20:19
¥²¡¼¥à·Ï·Ç¼¨ÈĤòºî¤Ã¤Æ¤ß¤¿¤Î¤Ç»È¤Ã¤Æ¤ß¤Æ

No. 695 # ¥¨¥ê 2000/02/01 (²Ð) 16:03
£Ð£Ã¾å¤Ç¡¢C++¤ÇºîÀ®¤·¤¿DLL¤ò¡¢UNIX¾å¤Ç»È¤¨¤ë¤è¤¦¤Ë¤·¤¿¤¤¤Î¤Ç¤¹¡£
¤É¤Î¤è¤¦¤Ë¤·¤Æ¤¤¤±¤Ð¤è¤¤¤«¡¢¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£
C++Æâ¤Ç¤É¤Î¤è¤¦¤ÊÊÑ´¹¤ò¹Ô¤¤¡¢UNIX¾å¤Ë¤Æ¥³¥ó¥Ð¡¼¥È¤¹¤ì¤Ð¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡©

No. 696 # ¥²¥Î 2000/02/01 (²Ð) 16:40
¼ÁÌ䤬¤¢¤ê¤Þ¤¹¡£¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£
%¡¡ls ¥Õ¥¡¥¤¥ë̾¡¡
¤È¤·¤¿»þ¤Ë³ºÅö¥Õ¥¡¥¤¥ë¤¬Ìµ¤«¤Ã¤¿¾ì¹ç
ls:No match.
¤È½Ð¤Þ¤¹¤¬¤³¤Î¥á¥Ã¥»¡¼¥¸¤ò½Ð¤µ¤Ê¤¤ÊýË¡¤¬
¤¢¤ê¤Þ¤·¤¿¤é¶µ¤¨¤Æ²¼¤µ¤¤¡£

No. 697 # 68user [URL] [E-mail] 2000/02/01 (²Ð) 18:40
> C++¤ÇºîÀ®¤·¤¿DLL¤ò¡¢UNIX¾å¤Ç»È¤¨¤ë¤è¤¦¤Ë¤·¤¿¤¤¤Î¤Ç¤¹¡£
Windows ¤ÏÁ´¤¯ÃΤê¤Þ¤»¤ó¤¬ (DLL ¤Ã¤Æ¥é¥ó¥¿¥¤¥à¥é¥¤¥Ö¥é¥ê
¤Ç¤¹¤è¤Í? ¤È¤¤¤¦¤¯¤é¤¤¤·¤«ÃΤé¤Ê¤¤)¡¢DLL ¤ò UNIX ¤Ë
»ý¤Ã¤Æ¤¯¤ë¤Î¤Ï¤µ¤¹¤¬¤Ë̵Íý¤Ç¤·¤ç¤¦¡£

C++ ¤Î¥½¡¼¥¹¤ò»ý¤Ã¤Æ¤­¤Æ¡¢ar ¤Ç¥¢¡¼¥«¥¤¥Öºî¤ë¤«¡¢ld ¤Ç
¥é¥ó¥¿¥¤¥à¥é¥¤¥Ö¥é¥ê¤òºî¤ë¤Î¤¬¤Þ¤Ã¤È¤¦¤ÊÊýË¡¤À¤È»×¤¤¤Þ¤¹¡£

> ls:No match.
> ¤È½Ð¤Þ¤¹¤¬¤³¤Î¥á¥Ã¥»¡¼¥¸¤ò½Ð¤µ¤Ê¤¤ÊýË¡
¡ÖNo match¡×¤¬½Ð¤ë¤Î¤Ï
    ¡Ötcsh ¤Ç¡¢¥ï¥¤¥ë¥É¥«¡¼¥É¤ò»È¤Ã¤Æ¡¢¥Þ¥Ã¥Á¤·¤Ê¤«¤Ã¤¿¤È¤­¡×
¤À¤È»×¤¤¤Þ¤¹¤¬¡¢
    % (ls hoge* >/dev/tty) >& /dev/null
¤Ç¡¢É¸½à¥¨¥é¡¼½ÐÎϤò¥ê¥À¥¤¥ì¥¯¥È¤¹¤ë¤È¤«¡¢
    % set nonomatch
    % ls hoge*
¤È¤·¤Æ¡¢¥Þ¥Ã¥Á¤·¤Ê¤«¤Ã¤¿¤È¤­¤Ë¥¨¥é¡¼¤Ë¤µ¤»¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤È¤«¡¢
    % set noglob
    % ls hoge*
¤È¤·¤Æ¡¢ºÇ½é¤«¤é¥ï¥¤¥ë¥É¥«¡¼¥É¤òŸ³«¤µ¤»¤Ê¤¤¡¢¤Ê¤É¤ÎÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£

No. 698 # Fu [E-mail] 2000/02/01 (²Ð) 20:39
¤Ï¤¸¤á¤Þ¤·¤Æ¡£
perl¤Ç¥á¡¼¥ë¤ò¼õ¿®¤¹¤ëÊýË¡¤òÄ´¤Ù¤Æ¤¤¤¿¤È¤³¤í¡¢¤³¤Á¤é¤Î·Ç¼¨ÈĤò
ȯ¸«¤·¤Þ¤·¤¿¡£
¤ª¿Ò¤Í¤·¤¿¤¤¤³¤È¤Ï¡¢pop3¥µ¡¼¥Ð¡¼¤«¤é¥á¡¼¥ë¤ò¼õ¿®¤·¡¢¤½¤Î¥á¡¼¥ë¤Î
źÉÕ¥Õ¥¡¥¤¥ë¤òWindows¤Î¥Õ¥©¥ë¥À¤ËÊݸ¤¹¤ëÊýË¡¤Ç¤¹¡£
UNIX¤äCGI¤Î·Ð¸³¤¬Á´¤¯Ìµ¤¤Áǿͤʤâ¤Î¤Ç¡¢¤Ê¤«¤Ê¤«¤¦¤Þ¤¯¤¤¤­¤Þ¤»¤ó¡£
»²¹Í¤Ë¤Ê¤ëURL¤ä½ñÀÒÅù¤â¤¢¤ê¤Þ¤·¤¿¤é¶µ¤¨¤Æ¤¤¤¿¤À¤±¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡£
OS¤ÏWindowsNT4.0Ëô¤ÏWindows95¤Ç¤¹¡£
µ¹¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£

No. 699 # 68user [URL] [E-mail] 2000/02/01 (²Ð) 21:22
POP ¤Ø¤Î¥¢¥¯¥»¥¹¤Ï
    http://X68000.startshop.co.jp/~68user/net/
¤òÆɤó¤Ç²¼¤µ¤¤¡£

multipart ¥á¡¼¥ë¤ò¥Ð¥é¤¹¤Î¤Ï¡¢perl ¤Î MIME-tools ¥â¥¸¥å¡¼¥ë¤Ç
¤Ç¤­¤½¤¦¤Ê´¶¤¸¤Ç¤¹ (»î¤·¤¿¤³¤È¤Ê¤¤¤Î¤Ç)¡£¤ï¤«¤é¤Ê¤«¤Ã¤¿¤é
¤Þ¤¿¼ÁÌ䤷¤Æ²¼¤µ¤¤¡£

No. 700 # 68user [URL] [E-mail] 2000/02/01 (²Ð) 21:33
> multipart ¥á¡¼¥ë¤ò¥Ð¥é¤¹¤Î¤Ï¡¢perl ¤Î MIME-tools ¥â¥¸¥å¡¼¥ë¤Ç
perl ¤Î MIME-tools¡¢IO-stringy¡¢MailTools ¥â¥¸¥å¡¼¥ë¤ò
Æþ¤ì¤Æ¡¢perldoc MIME::Parser ¤Î¥µ¥ó¥×¥ëÄ̤ê¤ä¤Ã¤Æ¤ß¤¿¤é
¤¢¤Ã¤µ¤ê¤Ç¤­¤Þ¤·¤¿¡£¥â¥¸¥å¡¼¥ë¤ËÍê¤ë¤È´Êñ¤À¤Ê¤¡¡£

No. 701 # ¤â¤â¤ó¤¬ 2000/02/02 (¿å) 08:39
: : ¿®¤¸¤é¤ì¤Ê¤¤¤±¤ÉËÜÅö¤ÎÏᣡ¡¡¡
: : »ä¤Ï¤¢¤ëÆüBBS¤Ç1000±ß¤¬200Ëü±ß¤Ë¡¢¡¢¡¢¤È¤«¤¤¤Æ¤¢¤ë¤Î¤ò¸«¤¿¡£
: : 200Ëü±ß¤â¤Î¤ª¶â¤¬Í¹Á÷¤µ¤ì¤Æ¤¯¤ë¤È½ñ¤¤¤Æ¤¢¤Ã¤¿¡£
: : ¤Þ¤µ¤«¡¢¤½¤ó¤Ê¤Ë¤Ï¡¢¡¢¡¢¤È»×¤Ã¤Æ¤Ï¤ß¤¿¤¬¡¢
: : ¤ä¤é¤Ê¤­¤ã²¿¤â¤Ï¤¸¤Þ¤é¤Ê¤¤¡¢¤Þ¤¡¡¢²¿¤â¤Ê¤¯¤Æ1000±ß¤¯¤é¤¤¤Î»¤À¤·¡¢¡¢¡¢
: : ¤Þ¡¢¿ôËü¤¯¤é¤¤¤Ï¡¢¡¢¡¢¡¢¡£¤È¡¢»×¤Ã¤Æ¤¤¤¿¡£
: : (¥Û¥ó¥È¤Ë·Ú¤¤µ¤»ý¤Á¤Ç)¤À¤«¤é¡¢¤½¤ÎBBS¤Î¤È¤ª¤ê¤Ë¤ä¤Ã¤Æ¤ß¤¿¡£

: : »ä¤¬¤ä¤Ã¤¿¤³¤È¤Ï¡¢½ñ¤­´¹¤¨¤¿¥Õ¥¡¥¤¥ë(¤³¤Îʸ½ñ¤Ç¤¹)¤ò
: : ¥Ë¥å¡¼¥¹¥°¥ë¡¼¥×¤äBBS¤ÎÅŻҷǼ¨ÈĤʤɤË(¡ª¡ª½ÐÍè¤ë¤À¤±Â¿¤¯¤Î¡ª¡ª)
: : ¥¢¥Ã¥×¥í¡¼¥É¤·¤¿¡£
: : ¤½¤·¤Æ»ä¤Ï¤ª¶â¤¬Íè¤ë¤Þ¤Ç¤É¤­¤É¤­¤·¤Ê¤¬¤éÂԤäƤ¤¤¿¡£
: : »ä¤Ï10Ëü±ß¤ä15Ëü±ß¤°¤é¤¤Íè¤ë»þ¤·¤Þ¤¦¤È¤³¤í¤ò³ÎÊݤ·¤Æ¤¤¤¿¡£¡¡
: : ¤Ç¤â¡¢¡¢¡¢¡£¤ª¶â¤ÎÆþ¤Ã¤¿ÉõÅû¤¬¤É¤ó¤É¤ó͹Êؼõ¤±¤ËÆþ¤Ã¤Æ¤¯¤ë¤Î¤Ë¤Ï¡¢
: : ¶ÄÅ·¤·¤¿¡£¡ª¡ª¡¡¤µ¤Æ¡¢»ä¤Ë¤¤¤¯¤é¤ª¶â¤¬Á÷¤é¤ì¤Æ¤­¤¿¤Ç¤·¤ç¤¦¡©
: : 10Ëü¡©20Ëü¡©50Ëü¡©»ä¤Ï¹ç·×¡ª¡ª¡ªÌó200Ëü±ß¡ª¡ª¡ª±³¡¢¡¢¡¢¡¢¡¢¡£
: : ¤³¤Î¤ª¶â¤òÌܤˤ·¤Æ¤Þ¤À¤·¤ó¤¸¤é¤ó¤Ê¤¤¤Ã¤Æ´¶¤¸¡ª¡ª¡ª

: : ¤µ¤Æ¡¢¤½¤Î¶ñÂÎŪ¤ÊÊýË¡¤ò½ñ¤­¤Þ¤¹¡£¤Á¤ã¤ó¤È¥Õ¥¡¥¤¥ë¤ËÊݸ¤·¤Æ¤ª¤¯¤ÈÎɤ¤¤è¡£
: : ¤¢¤È¤ÇÌò¤ËΩ¤Á¤Þ¤¹¡£·¯¤¬Ê§¤ï¤Ê¤¯¤Æ¤Ï¤¤¤±¤Ê¤¤Êª¤Ï¡¢5Ëç¤ÎÀڼꡢÉõÅû¡¢1000±ß¡£
: : ¤½¤ì¤ò¡¢¥ê¥¹¥È¤Î5¿Í¤Ë¡¢¹çˡŪ¤Ë¸½¶â¤òÁ÷¤ëÊýË¡¤ÇÁ÷¤ë¡£¤½¤·¤Æ¡¢·¯¤Î̾Á°¤È
: : ½»½ê¤¬½ñ¤¤¤Æ¤¢¤ëÊý¤Î¥Õ¥¡¥¤¥ë¤ò¤¤¤í¤¤¤í¤Ê¤È¤³¤í¤Ë¥¢¥Ã¥×¥í¡¼¥É¤¹¤ë¡£
: : ¤½¤¦¤·¤¿¤é¤¿¤Ã¤¿1000±ß¤¢¤²¤ë¤À¤±¤Ç150Ëü±ß¤«¤é250Ëü±ß¤ÎÌá¤ê¤¬3¡Á5½µ´Ö¤Ç
: : ÆϤ­¤Þ¤¹¡ª¡ª¡ª¡ª

: : ¤Ç¤Ï¶ñÂÎŪ¤Ë¤É¤¦¤¹¤ì¤ÐÎɤ¤¤«¡©
: : ¡ö ¡ö¡ö̾Á°¤È½»½ê¤Î¥ê¥¹¥È¤ÏºÇ¸å¤Ë¤¢¤ê¤Þ¤¹¡£¡ö¡ö¡ö
: : ¤Þ¤º°ìËç¤Î»æ¤Ë¡Ö»ä¤ò¤¢¤Ê¤¿Êý¤Î¥ê¥¹¥È¤ËÆþ¤ì¤Æ¤¯¤À¤µ¤¤¡£¡×¤³¤ì¤ò½ñ¤¯¤³¤È¤Ë¤è¤ê¡¢
: : ¤³¤Î¥¹¡¼¥Ñ¡¼¥Þ¥Í¡¼¥·¥¹¥Æ¥à¤ÏÀ®¤êΩ¤Á¤Þ¤¹¡£(¹çË¡¤Ë¤Ê¤ê¤Þ¤¹¡£)¡¡
: : ¤¢¤Ê¤¿¤Ï200±ß¤ò¥é¥ó¥À¥à¤Ëʧ¤¦¤Î¤Ç¤Ï¤Ê¤¯¤³¤Î¥·¥¹¥Æ¥à¤Ëʧ¤¦¤Î¤Ç¤¹¡£
: : ¤½¤¦¤½¤¦¡¢»æ¤Ë¼«Ê¬¤Î̾Á°¤È½»½ê¤È¤¢¤Ê¤¿¤¬½Ð¤¹¿Í¤Ï¥ê¥¹¥È¤Î²¿ÈÖÌܤˤ¤¤¿¤«¤ò
: : ½ñ¤­¤Þ¤¹¡£
: : 1¡¥¡Ê¤¢¤Ê¤¿¤Ï¥ê¥¹¥È¤Ç¤Ï¡¢¡ûÈÖÌܤˤ¤¤Þ¤·¤¿¡Ë¤È¡¢½ñ¤­¤Þ¤¹¡£
: : 2¡¥¡Ê1¡Ë¤Ç½ñ¤¤¤¿»æ¤ò200±ß¤Ë¤Þ¤­¤Ä¤±¤Þ¤·¤ç¤¦¡£¤½¤·¤ÆÉõÅû¤ËÆþ¤ì¡¢
: : ¡¡¥ê¥¹¥È¤Ë½ñ¤¤¤Æ¤¢¤ë5¤Ä¤Î½»½ê¤ËÁ÷¤ë¡£¡¡»æ¤ò200±ß¤Ë´¬¤­¤Ä¤±¤Æ¡¢¡¡¡¡
: : ¡¡200±ß¤ò¸«¤¨¤Ê¤¯¤¹¤ë¤Î¤Ë¤Ï¥ï¥±¤¬¤¢¤ê¤Þ¤¹¡£¡¡
: : ¡¡Í¹ÊؤǸ½¶â¤òÁ÷¤Ã¤Æ¤Ï¤¤¤±¤Ê¤¤¤Î¤À¡£Í¹Êضɤ˹ԤäÆ200±ß¤Î5Ëç¤Ë¤·¤Æ¤âÎɤ¤¡£
: : ¡¡¼ê¿ôÎÁ10±ß¡£¾®°ÙÂؤÀ¤Ã¤¿¤é¤Þ¤¯É¬Íפ¬¤Ê¤¤¤è¡ª

: : ¡ö ¡ö¤³¤Î¥¹¥Æ¥Ã¥×¤Ï½ÅÍפǤ¹¡£¡ö¡ö
: : 3¡¥¤µ¤Æ¡¢¤³¤³¤«¤é¤¬½ÅÍס£¤è¤¯Æɤó¤Ç¡¢¥·¥¹¥Æ¥à¤òÍý²ò¤·¤Æ¤Í¡£
: : ¡¡°ìÈÖ¾å¤Î¿Í¤ò¾Ã¤¹¡£¤½¤·¤Æ¾¤Î³§¤Î¥Ý¥¸¥·¥ç¥ó¤ò°ì¤Ä¤º¤Ä¾å¤²¤ë¡£
: : ¡¡¤Ä¤Þ¤ê¡¢¥Ý¥¸¥·¥ç¥ó2¤Î¿Í¤òP1¤Ë¡¢P3¤Î¿Í¤òP2¤Ë¡¢P4¤Î¿Í¤òP3¤Ë¡¢P5¤Î¿Í¤òP4¤Ë
: : ¡¡¤«¤¨¤ë¤È¤¤¤¦¤³¤È¡£¤½¤·¤Æ¥Ý¥¸¥·¥ç¥ó5¤Ë·¯¤Î̾Á°¡¢½»½ê¡¢Í¹ÊØÈֹ桢¹ñ¤ò
: : ¡¡½ñ¤­¤³¤à¤ï¤±¡£
: : 4¡¥¤½¤·¤Æ¡Ê£³¡Ë¤ÇÊѤ¨¤¿¤³¤ì¤Î¥Õ¥¡¥¤¥ë¤ò¤¤¤í¤¤¤í¤Ê¤È¤³¤í¤Ë½ÐÍè¤ë
: : ¡¡¤À¤±¤¿¤¯¤µ¤ó¥¢¥Ã¥×¥í¡¼¥É¤·¤Þ¤¹¡£¡¡¡¡

: : ¥¢¥Ã¥×¥í¡¼¥É¤·¤¿¤Ö¤ó¼«Ê¬¤ËÄ·¤ÍÊ֤äƤ­¤Þ¤¹¡£
: : ¼«Ê¬¤È¾¤Î4¿Í¤Ë¤â¤ª¶â¤¬Æþ¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£

: : ¤µ¤Æ³§¤µ¤ó¡¢¥ê¥¹¥È¤Ë¤Ä¤¤¤Æ¤ÏÀµÄ¾¤Ë¤·¤Þ¤·¤ç¤¦¡ª¡ª¡¡
: : ±ø¤¤»ö¤·¤Ê¤¯¤Æ¤â¡¢¤ª¶â¤Ï¤¤¤Ã¤Ñ¤¤Æþ¤ë¤«¤é¡£¥¦¥½¤ÏÀäÂФ˼­¤á¤Þ¤·¤ç¤¦¡£OK¡©

: : 5¡¥¤³¤³¤Þ¤Ç¤­¤¿¤é¤â¤¦¸å¤Ï¿ÍÀ¸³Ú¤·¤ß¤Þ¤·¤ç¤¦¡£
: : ¡¡¤ª¶â¤ÏÃ塹¤È·¯¤Î͹Êؼõ¤±¤ËÆþ¤Ã¤Æ¤­¤Þ¤¹¡£

: : ½é¤á¤Æ2½µ´Ö¤¯¤é¤¤¤«¤é¤ª¶â¤¬Æþ¤ê¤Ï¤¸¤á¤Æ3¡Á4½µ´ÖÌܤˤϤª¶â¤ÎÂæÉ÷¤¬·¯¤Î
: : ͹Êؼõ¤±¤ò½±¤¤¤Þ¤¹¡£¡¡¤Ó¤Ã¤¯¤ê¤·¤Æ¶«¤Ð¤Ê¤¤¤è¤¦¤Ë¤Í¡£
: : ¤ª¶â¤¬¤Ê¤¯¤Ê¤Ã¤Æ¤­¤¿¤éËô´û¤Ë½ñ¤­´¹¤¨¤¿¥Õ¥¡¥¤¥ë¤Ë¡Ê£´¡Ë¡Á¤Î¹ÔÄø¤ò·«¤êÊÖ¤·¤Þ¤·¤ç¤¦¡£
: : ÀäÂФˤ³¤Î¥Õ¥¡¥¤¥ë¤Ï¤Ê¤¯¤µ¤Ê¤¤¤è¤¦¤Ë¡£
: : ²¿Å٤Ǥâ»È¤¨¤ë¤«¤é¡£»²¹Í¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
: : ̾Á°¤È½»½ê¤Î¥ê¥¹¥ÈÀµÄ¾¤¬¤³¤Î¥×¥í¥°¥é¥à¤òÀ®¸ù¤µ¤»¤ë¡ª¡ª¡ª

: : 1¡¥ ²£»³Èþͳµª¡¡¢©193-0932ÅìµþÅÔȬ²¦»Ò»ÔÎÐÄ®401¡Ý105
: : 2¡¥ ÇÈ¿ÌÍü¡¡¢©860-0085·§Ëܸ©·§ËܻԹâÊ¿2-16-5
: : 3¡¥ ±ºÀ¾¹°ÌÀ¡¡¢©524¡¼0101¼¢²ì¸©¼é»³»Ôº£ÉÍÄ®2620-14-216
: : 4¡¥ ¼¾å·ò°ì¡¡¢©014-0722½©Åĸ©ÀçËÌ·´ÃæÀçĮ˭Àî»ú²¼±ä17-2
: : 5. ¾®´Ø¥ê¥Î¡¡¢©080-0834Ë̳¤Æ»ÂÓ¹­»Ô°ðÅÄÄ®À¾£±Àþ£µÈÖÃÏ£±£±£µ

: : ¤¢¤Ê¤¿¤ËÁ´¤¯¥Þ¥¤¥Ê¥¹¤Ï¤¢¤ê¤Þ¤»¤ó¡ª¡ª¡ª¡ª
: : ·¯¤Ë¤ª¶â¤òÁ÷¤Ã¤Æ¤­¤¿¿Í¤Î̾Á°¤Ï¤Ê¤¯¤µ¤Ê¤¤¤è¤¦¤Ë¤·¤¿¤Û¤¦¤¬Îɤ¤¤Ç¤·¤ç¤¦¡£¡¡
: : ¤ß¤ó¤Ê¤Ç¸øÊ¿¤Ë¤³¤Î¥·¥¹¥Æ¥à¤ò»È¤¤¤Þ¤·¤ç¤¦¡£

: : ºÇ¸å¤Ë¡§ÀµÄ¾¤¬¤³¤Î¥·¥¹¥Æ¥à¤òÀ®¸ù¤µ¤»¤ë¤Î¤Ç¤¹¡ª¡ª¡ª
: : ¤â¤·¤â¤¢¤Ê¤¿¤¬¤ª¶â¤ò¥ê¥¹¥È¤Î¸Þ¿Í¤Ë½Ð¤µ¤Ê¤¤Èܶ±¼Ô¤À¤Ã¤¿¤é¤¢¤Ê¤¿¤Ï¤¢¤Þ¤ê
: : ¤ª¶â¤ò¤â¤é¤¨¤Ê¤¤¡£»ä¤Ï狼¤¬¤ª¶â¤ò¥ê¥¹¥È¤Î¸Þ¿Í¤ËÁ÷¤é¤Ê¤«¤Ã¤¿¤Î¤Ç3Ëü±ß¡Ê2¥ö·î¸å¤Ë¡Ë
: : ¤·¤«¤â¤é¤¨¤Ê¤«¤Ã¤¿¤Î¤òÃΤäƤ¤¤ë¡£¤½¤ì¤«¤é¤ª¶â¤ò¥ê¥¹¥È¤Î5¿Í¤ËÁ÷¤Ã¤¿¤Î¤Ç¥ê¥¹¥È
: : ¤Î¿Í¤¿¤Á¤ÏÈà¤ò¥ê¥¹¥È¤ËÆþ¤ì¤Æ¤¢¤²¤¿¡£¤½¤·¤Æ4¡Á5½µ´Ö¸å¤ËÈà¤Ï200Ëü±ß°Ê¾å¼ê¤ËÆþ¤ì¤¿¤Î¤Ç¤¹¡£¡¡
: : ¤³¤ì¤ÏËÜÅö¤ÎÏäǤ¹¤è¡ª¡ª¡ª¡¡¡Ê¤Á¤ç¤Ã¤È¤Ó¤Ã¤¯¤ê¡Ë
: : ¤À¤Þ¤µ¤ì¤¿¤È»×¤Ã¤Æ1000±ß½Ð¤»¤Ð¤¹¤´¤¤Âç¶â¤¬¼ê¤ËÆþ¤ê¤Þ¤¹¡ª¡ª¡ª¡Ê¾åµ­¤Î¤³¤È¤«¤é¡Ë
: : ¡¡¤³¤Î¥Á¥ã¥ó¥¹¤òÂç»ö¤Ë¤·¤Þ¤·¤ç¤¦¡ª¡ª¡ª

No. 702 # Ta [E-mail] 2000/02/02 (¿å) 12:08
¤Ï¤¸¤á¤Þ¤·¤Æ¡£Ta¤È¿½¤·¤Þ¤¹¡£

whois.cgi¤Ë´Ø¤·¤Æ¡¢¤ªÊ¹¤­¤·¤¿¤¤¤³¤È¤¬¤¢¤ë¤Ç¤Î¤¹¤¬¡¢¤â¤·¤è¤«¤Ã¤¿¤é¶µ¤¨¤Æ²¼¤µ¤¤¡£

»ä¤ÎISP¤Ï¡¢LINUX(Redhat)¤ò»ÈÍѤ·¤Æ¤¤¤ë¤¿¤á¡¢68User¤¬ºî¤é¤ì¤¿cgi¤Î¥¹¥¯¥ê¥×¥È¤Î
°ìÉô¤òÊѹ¹¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤³¤È¤Ëµ¤¤¬ÉÕ¤­¤Þ¤·¤¿¡£

¥ª¥ê¥¸¥Ê¥ë¤Ç¤Ï¡¢'whois -h whoisserver domain'¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤¬¡¢Linux¤Ç¤Ï¡¢whois
¥³¥Þ¥ó¥É¤Î¥Ñ¥é¥á¡¼¥¿¡¼¤¬°ã¤¦¤è¤¦¤Ç¡¢'whois domain\@whoiserver'¡Ê'whois domain@whoiserver'¤È¤¤¤¦¥Ñ¥é¥á¡¼¥¿¡¼¤â¸«¤¿¤³¤È¤¬¤¢¤ë¤ó¤Ç¤¹¤¬¡Ë¤È¤¤¤¦¤³¤È¤Ê¤Î¤Ç¡¢¥¹¥¯¥ê¥×¥ÈÆâ¤Î°Ê²¼¤ÎÉôʬ¤Î¤ß¤òÊѹ¹¤·¤Þ¤·¤¿¡£


¡ôÊѹ¹Á°

$ret = `$whois -h $nics{$nic} $domain`;

¡ôÊѹ¹¸å

$ret = `$whois $domain\@$nics{$nic}`;


¤³¤ì¤Ë¥×¥é¥¹¤·¤Æ¡¢ÅöÊý¤ÎISP¤Ç¤Ï¡¢'whois'¤¬¡¢'/bin'¤Ë¤¢¤ë¤Î¤Ç¡¢'environment.pl'¤Î'$whois'¤Î¥Ñ¥¹¤â'/bin/whois'¤ËÊѹ¹¤·¤Þ¤·¤¿¡£

¤È¤³¤í¤¬¡¢¥µ¡¼¥Ð¡¼¥¨¥é¡¼¤¬½Ð¤Æ¤·¤Þ¤¤¤Þ¤¹¡£ISP¤ÇÍÑ°Õ¤·¤Æ¤¢¤ë¥Ç¥Ð¥Ã¥¯¤Îµ¡Ç½¡Êweb
¤«¤é¹Ô¤¦¡Ë¤òÍøÍѤ·¤Æ¤ß¤¿¤È¤³¤í¡¢°Ê²¼¤Î¤è¤¦¤Ê·ë²Ì¤¬¤Ç¤Þ¤·¤¿¡£

-----------------------------------
TEST 1: script and permissions
Passed Test 1!

TEST 2: script file format
Passed Test 2!

TEST 3: check perl path
Passed Test 3!

TEST 4: perl syntax
      String found where operator expected at t_whois.cgi line 45, near "print ""
          (Might be a runaway multi-line "" string starting on line 33)
       (Missing semicolon on previous line?)
      syntax error at t_whois.cgi line 45, near "print ""
      t_whois.cgi had compilation errors.

Your script failed one or more of the tests and could not
be automatically corrected. Please correct the errors
listed above and try again.
-----------------------------------

Ä´¤Ù¤Æ¤ß¤¿¤È¤³¤í¡¢¤ª¤½¤é¤¯¡¢Êѹ¹¤·¤¿Éôʬ¤Î¤¬´Ø·¸¤¹¤ë¤È»×¤¦¤Î¤Ç¤¹¤¬¡¦¡¦¡¦
¸¶°ø¤¬¤è¤¯Ê¬¤«¤ê¤Þ¤»¤ó¡£

¤â¤·¡¢²ò·èÊýË¡¤ò¤´Â¸ÃΤǤ·¤¿¤é¡¢¤´»ØƳ失¤ì¤Ð½õ¤«¤ê¤Þ¤¹¡£

Ta

No. 703 # 68user [URL] [E-mail] 2000/02/02 (¿å) 13:34
> (Might be a runaway multi-line "" string starting on line 33)
> (Missing semicolon on previous line?)
¡Ö33¹ÔÌܤ«¤é»Ï¤Þ¤ë "" ¤¬ÊĤ¸¤Æ¤Ê¤¤¤Î¤Ç¤Ï¤Ê¤¤¤«?¡×
¡ÖÁ°¤Î¹Ô¤ÎºÇ¸å¤Ë¥»¥ß¥³¥í¥ó¤òÉÕ¤±Ëº¤ì¤Æ¤¤¤Ê¤¤¤«?¡×
¤È¤¤¤¦¤³¤È¤Ç¤·¤ç¤¦¡£

> $ret = `$whois $domain\@$nics{$nic}`;
¤³¤ì¼«ÂΤÏÌäÂꤢ¤ê¤Þ¤»¤ó¡£

No. 704 # Ta [E-mail] 2000/02/02 (¿å) 14:39
68User¤µ¤ó¡¢ÁᮤΤªÊÖ»öÍ­¤êÆñ¤¦¤´¤¶¤¤¤Þ¤¹¡£
¥¹¥¯¥ê¥×¥È¤Ï³Îǧ¤·¤¿¤È»×¤¦¤Î¤Ç¤¹¤¬¡¢ºÆÅÙ¡¢³Îǧ¤·¤Æ¤ß¤Þ¤¹¡£
¤â¤·¡¢¤Þ¤¿Ê¬¤«¤é¤Ê¤¤¤³¤È¤¬¤¢¤ì¤Ð¡¢¤ªÊ¹¤­¤¹¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤¬¡¢
¤è¤í¤·¤¯¤ª´ê¤¤Ãפ·¤Þ¤¹¡£

Ta

No. 705 # Ta [E-mail] 2000/02/02 (¿å) 20:58
ÅÙ¡¹¤¹¤¤¤Þ¤»¤ó¡£Ta¤Ç¤¹¡£¥¹¥¯¥ê¥×¥È¤Ë¥ß¥¹¤¬¤¢¤ê¤Þ¤·¤¿¡£¤½¤Î¸å¡¢¥Ç¥Ð¥Ã¥¯¤ò¤·¤Æ¤ß¤ë¤È¡¢Á´¤Æ¥Ñ¥¹¤·¤Þ¤·¤¿¡£

TEST 1: script and permissions
Passed Test 1!

TEST 2: script file format
Passed Test 2!

TEST 3: check perl path
Passed Test 3!

TEST 4: perl syntax
      t_whois.cgi syntax OK
Passed Test 4!

Your script has passed all 4 tests.

If your script passes these tests, and still won't run,
you might look for one or more of these common problems:
      1) make sure it can find any files or external programs it needs
      2) make sure any included perl programs also check out
      3) make sure you are writing a "Content-type:" line
            at the beginning of your output
Consult your favorite Perl/CGI book for more information.

¤³¤ì¤ÇÆ°¤¯¤«¤È»×¤Ã¤¿¤é¡¢Internal Server Error¡¦¡¦¡¦
¤¦¡Á¤ó¡¢¤Ê¤ó¤Ç¤À¤«Ê¬¤«¤ê¤Þ¤»¤ó¡£environment.pl¤Ï¡¢$whois¤Î¥Ñ¥¹¤ò½¤Àµ¤¹¤ë¤À¤±¤Ç¡¢¤¤¤¤¤Ï¤º¤Ç¤¹¤è¤Í¡£

²¿¤«¡¢¥Á¥§¥Ã¥¯¤·¤Æ¤ß¤ë¤È¤³¤í¤¬¤¢¤Ã¤¿¤é¶µ¤¨¤Æ²¼¤µ¤¤¡£

Ta

No. 706 # 68user [URL] [E-mail] 2000/02/03 (ÌÚ) 06:30
¤È¤ê¤¢¤¨¤º¡¢

> open(STDOUT,"|$nkf -j");
open(STDOUT,"| /usr/local/bin/nkf -j");
> &put_header("whois¤·¤Æ¤ß¤è¤¦ -- $domain --");
print "Content-type: text/html\n\n";
print "<HTML>\n<HEAD><TITLE>whois¤·¤Æ¤ß¤è¤¦ -- $domain --</TITLE></HEAD>\n";
print "<BODY ...(ά)...>\n";
> &finish_work;
print "</BODY>\n</HTML>\n";

¤Ê¤É¤È½ñ¤­´¹¤¨¤Æ¡¢environment.pl ¤Ê¤·¤ÇÆ°¤¯¤è¤¦¤Ë¤·¤Æ¤ß¤Æ²¼¤µ¤¤¡£

¤½¤ì¤Ï¤½¤ì¤È¤·¤Æ ¤Ê¤¼Æ°¤«¤Ê¤¤¤«¤È¤¤¤¦¤È¡¢CGI ·Ðͳ¤Ç¼Â¹Ô¤·¤¿ºÝ¤Ë
environment.pl ¤¬Æɤ߹þ¤á¤Æ¤¤¤ë¤«¤É¤¦¤«¤¬µ¤¤Ë¤Ê¤ê¤Þ¤¹¡£
    if ( ! require 'environment.pl' ){
        print "Content-type: text/plain\n\nCan't load environment.pl\n";
        exit;
    }
¤Æ¤Ê´¶¤¸¤Ç¥Á¥§¥Ã¥¯¤¹¤ë¤È¤¤¤¤¤Ç¤·¤ç¤¦¡£

No. 707 # dai [E-mail] 2000/02/04 (¶â) 22:10
½é¤á¤Þ¤·¤Æ¡Ám(_ _)m

¤Á¤ç¤Ã¤Èʹ¤­¤¿¤¤»ö¤¬¤¢¤ë¤Î¤Ç¤¹¤¬¡¢unix¤Çmo¤Ë¥Ç¡¼¥¿¤ò¥»¡¼¥Ö¤¹¤ë¤Ë¤Ï¤É¤¦¤¹¤ì¤Ð¤¤¤¤¤ó¤Ç¤·¤ç¤¦¤«¡©
´Ä¶­¤Ï¤¢¤ë¤ß¤¿¤¤¤Ê¤Î¤Ç¤¹¤¬¡¢¤ä¤êÊý¤¬Ê¬¤«¤ê¤Þ¤»¤ó¡£

°ø¤ß¤Ëroot¸¢¸Â¤Ï¤Ê¤¤¤Ç¤¹¡£
unix¤Ïsolaris¤Ç¤¹¡£

No. 708 # Ta [E-mail] 2000/02/06 (Æü) 00:12
68User¤µ¤ó¡¢¿§¡¹¤È¥¢¥É¥Ð¥¤¥¹Í­Æñ¤¦¤´¤¶¤¤¤Þ¤¹¡£

¤É¤¦¤·¤Æ¤â¤¦¤Þ¤¯¤¤¤­¤Þ¤»¤ó¡£'nkf'¤Î¥Ñ¥¹¤¬´Ö°ã¤Ã¤Æ¤¤¤ë¤Î¤Ç¤·¤ç¤¦¤«¡©
¡Ê'environment.pl'¤ò»È¤ï¤Ê¤¤ÊýË¡¤Ç¹Ô¤Ã¤Æ¤ß¤Þ¤·¤¿¡Ë
'whois'¤â¡¢·ë¶É¡¢Ä´¤Ù¤¿¤È¤³¤í¡¢'/bin/whois'¤Ç¤·¤¿¤·¡¦¡¦¡¦

º£ÈÕ¡¢¤Þ¤¿Ä©À路¤Æ¤ß¤Þ¤¹¡£

No. 709 # 68user [URL] [E-mail] 2000/02/06 (Æü) 06:25
¤Þ¤º¤Ï
    #!/usr/local/bin/perl
    $|=1;
    print "Content-type: text/plain\n\n";
    print `/bin/whois yahoo.co.jp@whois.nic.ad.jp`
¤³¤³¤«¤é»Ï¤á¤Þ¤·¤ç¤¦¡£¤³¤ì¤Ç¥À¥á¤Ê¤é whois ¤ÎÌäÂê¤Ç¤¹¡£Æ°¤¤¤¿¤é
    #!/usr/local/bin/perl
    $|=1;
    open(STDOUT,"|/usr/local/bin/nkf -j");
    print "Content-type: text/plain\n\n";
    print `/bin/whois yahoo.co.jp@whois.nic.ad.jp`
¤È¤·¤Æ²¼¤µ¤¤¡£¤³¤ì¤Ç¥À¥á¤Ê¤é nkf ¤Î¥Ñ¥¹¤¬ÌäÂê¤Ç¤¹¡£

whois.nic.ad.jp ¤Ï JIS ¥³¡¼¥É¤òÊÖ¤·¤Þ¤¹¤¬¡¢whois.cgi ¤Ï
EUC ¤Ç½ñ¤«¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢nkf ¤Çʸ»ú¥³¡¼¥É¤òÅý°ì¤·¤Æ¤¤¤Þ¤¹¡£
¤Ê¤Î¤Ç¡¢ºÙ¤«¤¤»ö¤ò¸À¤¦¤È¾å¤ÎÎã¤Ç¤Ï nkf ¤ÏÍפê¤Þ¤»¤ó
(¥¹¥¯¥ê¥×¥È¤¬ EUC ¤ò (¤È¤¤¤¦¤«¡¢ÆüËܸì¤ò) ½ÐÎϤ·¤Æ¤¤¤Ê¤¤¤«¤é)¡£

> unix¤Çmo¤Ë¥Ç¡¼¥¿¤ò¥»¡¼¥Ö¤¹¤ë¤Ë¤Ï¤É¤¦¤¹¤ì¤Ð¤¤¤¤¤ó¤Ç¤·¤ç¤¦¤«¡©
¤³¤³¤é¤Ø¤ó¤¬¥Ò¥ó¥È¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¤«¡£
    http://www.pfu.co.jp/x86/faq/
Ëͼ«¿È¤Ï·Ð¸³¤¬¤Ê¤¤¤Î¤Ç¤ï¤«¤ê¤Þ¤»¤ó¡£

No. 710 # ¤Ø¤Ë¤« 2000/02/06 (Æü) 19:29
¡ÖHTTP ¥¯¥é¥¤¥¢¥ó¥È¤òºî¤Ã¤Æ¤ß¤è¤¦¡×¤È¡¢2000/01/12(¿å) 20:56¤Î
proxy¤Ë´Ø¤¹¤ë½ñ¤­¹þ¤ß¤ò»²¹Í¤Ë¤·¤¿¤é¡¢´Êñ¤Êproxy¥µ¡¼¥Ð¡¼¤¬¡¢
´Êñ¤Ëºî¤ì¤Þ¤·¤¿¡£¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡ª

¡ô¡¡¤Ç¤â¡¢¿ô¹Ô¤ÎÄɲ两ãºÑ¤Þ¤Ê¤«¤Ã¤¿¤Ê¤¡¡£¤â¤Ã¤È½¤¹Ô¤¹¤ì¤Ð
¡ô¡¡½ÐÍè¤ë¤è¤¦¤Ë¤Ê¤ë¤ó¤À¤í¤¦¤±¤É¡¦¡¦¡¦

No. 711 # has 2000/02/07 (·î) 01:03
¤Ê¤Ë¤ä¤é¤¤¤í¤¤¤íÂçÊѤ½¤¦¤Ç¤¹¤Í¡£
¤È¤³¤í¤Ç·Ç¼¨ÈĤÎÏäʤó¤Ç¤¹¤¬¡Ä¡£
¥í¥°¤Î´ÉÍý¤È¤«¡¢¤Ê¤ó¤«¤¤¤¤°ÆÉâ¤Ó¤Þ¤·¤¿¡©
²¶¤Ï¤¢¤ó¤Þ¹Í¤¨¤Æ¤Ê¤¤¤Ç¤¹¤±¤É¡£

¤½¤ì¤È¤¦¤Á¤Î·Ç¼¨ÈÄ¡¢²áµî¥í¥°°ìÍ÷¤ò¤Á¤ç¤Ã¤È
ʤÙÂؤ¨¤Æ¤ß¤Þ¤·¤¿¡Ê¤Ê¤Ë¤ä¤Ã¤Æ¤ó¤À¤«¡Ä¡Ë¡£
¤â¤·¤è¤«¤Ã¤¿¤é»È¤Ã¤Æ¤ä¤Ã¤Æ²¼¤µ¤¤¡£
¤½¤ì¤Ç¤Ï¤Þ¤¿¡£

No. 712 # 68user [URL] [E-mail] 2000/02/07 (·î) 04:31
> ¡ô¡¡¤Ç¤â¡¢¿ô¹Ô¤ÎÄɲ两ãºÑ¤Þ¤Ê¤«¤Ã¤¿¤Ê¤¡¡£
¤½¤¦¤Ç¤·¤¿¤«¡£¼ÂºÝ¤Ëºî¤Ã¤Æ¤ß¤¿¤ï¤±¤Ç¤Ï¤Ê¤¤¤Î¤Ç¡¢¤½¤¦¤«¤â¤·¤ì¤Þ¤»¤ó¡£
¤¿¤À¡¢¼ÂÍѤǻȤª¤¦¤È¤¹¤ë¤È¡¢¥Þ¥ë¥Á¥¹¥ì¥Ã¥É²½¤·¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó¤¬¡¢
¤½¤Î¾ì¹ç¤Ï·ë¹½¹Ô¿ô¤ÏÁý¤¨¤Þ¤¹¤Í¡£

> ¥í¥°¤Î´ÉÍý¤È¤«¡¢¤Ê¤ó¤«¤¤¤¤°ÆÉâ¤Ó¤Þ¤·¤¿¡©
¥í¥°¤ò1¤Ä¤Î¥Õ¥¡¥¤¥ë¤Ë¤Þ¤È¤á¤ë¤«¡¢1.txt¡¦2.txt¡Ä¤Èʬ¤±¤ë¤«¡¢¤Ç¤¹¤«?
¼ÂºÝ¤Î¤È¤³¤í¡¢¤½¤ì¤¾¤ì¥á¥ê¥Ã¥È¡¦¥Ç¥á¥ê¥Ã¥È¤¬¤¢¤ê¤Þ¤¹¤«¤é¡¢Æñ¤·¤¤¤Ç¤¹¤Í¡£
# <Email ....> Êý¼°¤Ï¤ä¤á¤è¤¦¤È»×¤Ã¤Æ¤Þ¤¹¡£<Email>....</Email> ¥¹¥¿¥¤¥ë¤Ë
# ¤¹¤ë¤Ä¤â¤ê¡£

¤½¤ì¤Ï¤½¤ì¤È¤·¤Æ¡¢¸å¼Ô¤Î¥í¥°´ÉÍýÊý¼°¤Ë¤·¤Æ¤¯¤ì¡¢¤È¤¤¤¦¤³¤È¤Ê¤é
¤É¤Á¤é¤Ç¤âÁª¤Ù¤ë¤è¤¦¤Ë²þ¤¤·¤Þ¤¹¤±¤É ¤É¤¦¤·¤Þ¤¹?

> ²áµî¥í¥°°ìÍ÷¤ò¤Á¤ç¤Ã¤ÈʤÙÂؤ¨¤Æ¤ß¤Þ¤·¤¿
¸Ä¿ô¤¬Â¿¤¯¤Ê¤ë¤È¡¢¸«¤ä¤¹¤¤¤Ç¤¹¤Í¡£»²¹Í¤Ë¤µ¤»¤Æ¤¤¤¿¤À¤­¤Þ¤¹¡£

¤È¤³¤í¤Ç ML ¤Î·ï¤Ç¤¹¤¬¡¢has ¤Î¤È¤³¤í¤Ç¤ä¤Ã¤Æ¤â¤é¤¨¤Þ¤»¤ó?
¤¦¤Á¤Ï¸åǤ¤Î´ÉÍý¼Ô¤¬¤¤¤Ê¤¤¤Î¤Ç¡¢¤³¤Î»þ´ü¤Ë»Ï¤á¤ë¤Î¤Ï¤¢¤­¤é¤á¤Þ¤·¤¿¡£

No. 713 # ¤«¤ê¤ê [E-mail] 2000/02/08 (²Ð) 05:38
¤ä¤Ã¤È¡¢¼«ÎϤÇCGIÀßÃÖ½ÐÍè¤Þ¤·¤¿¡£
CGI¤ò¤ä¤í¤¦¤È¤·¤Æ¤«¤é¼Â¤ËÆóǯ¤â¤«¤«¤Ã¤Æ¤ë¤ó¤Ç¤¹¤±¤É
¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤Èperl¤È¸À¤¦¸ÀÍդΰÕÌ£¤¬¤ä¤Ã¤Èʬ¤«¤ê¤Þ¤·¤¿
¼¡¤Ï¼«ºî¤Ëdz¤¨¤Æµï¤¿¤é¡¢CGI ¥×¥í¥°¥é¥à¤Î¤Ï¤¸¤á¤Î°ìÊâ
¤Ã¤Æ¸À¤¦¥³¥ó¥Æ¥ó¥Ä¤¬ºß¤Ã¤¿¤Î¤Ç´ò¤·¤¤¤Ç¤¹¡£perl¥Ñ¥½¤ËÆþ¤ì¤Æ
CGI¤ÎËÜÇã¤Ã¤Æ¤­¤Þ¤¹¤è¡¼¡£¤Ê¤ó¤«¡¢CGIÀßÃ֤Ǥ­¤¿¤Î¤¬
´ò¤·¤¯¤Æ¡¢68user¤µ¤ó¤ËÊó¹ð¤¬¤·¤¿¤«¤Ã¤¿¤Î¤Ç¤¹¡¼
¥Ò¥È¤Îºî¤Ã¤¿CGI¤¬¤¦¤´¤¤¤¿¤Ã¤Æ¤À¤±¤Ê¤ó¤Ç¤¹¤±¤É¡¢´ò¤·¤«¤Ã¤¿¤Ç¤¹¡£

No. 714 # 68user [URL] [E-mail] 2000/02/09 (¿å) 00:16
> perl¥Ñ¥½¤ËÆþ¤ì¤Æ CGI¤ÎËÜÇã¤Ã¤Æ¤­¤Þ¤¹¤è¡¼¡£
¤½¤ì¤Ï¤è¤¤¤³¤È¤Ç¸æºÂ¤¤¤Þ¤¹¡£¤ä¤Ï¤ê¼«ºî¤¹¤ë¤Î¤¬°ìÈÖ³Ú¤·¤¤¤ï¤±¤Ç¡¢
¤¼¤ÒÊÙ¶¯¤·¤Æ¤ß¤Æ²¼¤µ¤¤¡£

¤¿¤À¤·¡¢Â¾¿Í¤Ëʹ¤¯Á°¤Ë¡Ö¤Þ¤ºËܤòÆɤࡢ¤Þ¤º¼«Ê¬¤ÇÄ´¤Ù¤ë¡×¤È¤¤¤¦
¤³¤È¤Ïɬ¤º¹Ô¤¦¤è¤¦¤Ë¤·¤Æ²¼¤µ¤¤¡£¼«Ê¬¤ÇÄ´¤Ù¤é¤ì¤Ê¤¤¡¦¼«Ê¬¤Ç
Ä´¤Ù¤ëµ¤¤Î¤Ê¤¤¿Í¤Ï¡¢¾å㤷¤Þ¤»¤ó¤«¤é¡£

No. 715 # ¤¿¤Þ¤ê 2000/02/10 (ÌÚ) 23:35
¤Ï¤¸¤á¤Þ¤·¤Æ¡¢¤¿¤Þ¤ê¤È¿½¤·¤Þ¤¹¡£
CGI¡¢ÆäËperl¤òÊÙ¶¯Ãæ¤Îʪ¤Ç¤¹¡£
¡Ö¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥°¥é¥ß¥ó¥°¤Î´ðÁÃÃμ±¡×¡¢ÌÇÃã¶ìÃ㻲¹Í¤Ë¤Ê¤ê¤Þ¤·¤¿¡£
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£

¸½ºß¡¢68user¤µ¤ó¤Î¥¹¥¯¥ê¥×¥È¤ò»²¹Í¤Ë¡¢FTP¥¯¥é¥¤¥¢¥ó¥È¤ò½ñ¤¤¤Æ¤¤¤ë¤ó¤Ç¤¹¤¬¡¢
¤É¤¦¤âSTOR¤¬¤¦¤Þ¤¯¤¤¤­¤Þ¤»¤ó¡£
¥Õ¥¡¥¤¥ë¤¬Á÷¿®¤·½ª¤ï¤ë¤Þ¤Ç¤ËÀܳ¤òÀÚ¤é¤ì¤Æ¤·¤Þ¤¤¡¢FTPd¤¬¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤ò
²òÊü¤·¤Ê¤¤¤è¤¦¤Ê¾õÂ֤ˤʤäƤ·¤Þ¤¤¤Þ¤¹¡£

ÅöÊý¤Î´Ä¶­¤Ï¤È¤¤¤¦¤È¡¢Windows98 + ActivePerl build 521 + TinyFTPDaemon Ver 0.51¤Ç¤¹¡£
HD¤ÎžÁ÷®ÅÙ¤¬Äɤ¤¤Ä¤«¤Ê¤¤¤Î¤«¤Ê¤È»×¤¤¡¢°Ê²¼¤Î¤è¤¦¤Ë¥¦¥§¥¤¥È¤òÆþ¤ì¤Æ¤ß¤Æ¤â
¤À¤á¤Ç¤·¤¿¡£

while (<IN>) {
    print DATA $_;
    $i = 10000;
    while ($i) {$i--;}
}

¾åµ­¤Î¥³¡¼¥É¤ÏPassive¥â¡¼¥É¤Ç¥µ¡¼¥Ð¤¬³«¤¤¤¿DATA¥Ý¡¼¥È¤ËIN¥Õ¥¡¥¤¥ë¤òPUT¤·¤Æ
¤¤¤ëÉôʬ¤À¤È¤ª¹Í¤¨²¼¤µ¤¤¡£
·ë²Ì¤È¤·¤ÆžÁ÷®Å٤ϳΤ«¤Ë²¼¤¬¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤ò²òÊü¤·¤Ê¤¤
(¡áFTPd¤¬¡Ö¼õ¿®¤¬´°Î»¤·¤Þ¤·¤¿¡×¤È¸À¤ï¤Ê¤¤¡×)¤È¤¤¤¦¾É¾õ¤Ï²þÁ±¤µ¤ì¤Þ¤»¤ó¡£

¤Ê¤ª¡¢´Ä¶­¤ÎÀ©¸Â¤Ë¤è¤ê¡¢¥·¥ó¥°¥ë¥¹¥ì¥Ã¥É¤Ç½ñ¤¤¤Æ¤¤¤Þ¤¹¡£

¤³¤ì¤Ï¡¢´Ä¶­¤Ë¤è¤ë¸¶°ø¤¬¤¢¤ë¤Î¤Ç¤·¤ç¤¦¤«¡©
¤½¤ì¤È¤â¥³¡¼¥Ç¥£¥ó¥°¾å¤ÎÌäÂ꤬¤¢¤ë¤Î¤Ç¤·¤ç¤¦¤«¡©

¤è¤í¤·¤±¤ì¤Ð¤´¶µ¼¨²¼¤µ¤¤¡£

No. 716 # 68user [URL] [E-mail] 2000/02/11 (¶â) 20:24
> ¥Õ¥¡¥¤¥ë¤¬Á÷¿®¤·½ª¤ï¤ë¤Þ¤Ç¤ËÀܳ¤òÀÚ¤é¤ì¤Æ¤·¤Þ¤¤
²¿¥Ð¥¤¥ÈÁ÷¤Ã¤¿¤éÀÚ¤ì¤ë¡¢¤Ê¤É¤È¤¤¤¦ºÆ¸½À­¤Ï¤¢¤ê¤Þ¤¹¤«?
1¥Ð¥¤¥È¤º¤ÄÁ÷¤Ã¤Æ¤ß¤ë¤È¤É¤¦¤Ç¤·¤ç¤¦¡£¤Þ¤¿¡¢ÀÚ¤ì¤ë¤Î¤Ï
¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤Ç¤¹¤«? ¥³¥Þ¥ó¥É¥³¥Í¥¯¥·¥ç¥ó¤Ç¤¹¤«?

> FTPd¤¬¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤ò²òÊü¤·¤Ê¤¤¤è¤¦¤Ê¾õÂÖ
¤È¤¤¤¦¤Î¤Ï¶ñÂÎŪ¤Ë¤Ï¤É¤¦¤¤¤¦¾õÂ֤Ǥ¹¤«?
¤³¤ì¤â¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤«¥³¥Þ¥ó¥É¥³¥Í¥¯¥·¥ç¥ó¤«¤ò¶µ¤¨¤Æ²¼¤µ¤¤¡£

¤¢¤È¡¢¤³¤Î¥³¡¼¥É¤ÎÁ°¸å¿ô¹Ô¤ò¸«¤»¤Æ¤â¤é¤¨¤Þ¤¹¤«?

> HD¤ÎžÁ÷®ÅÙ¤¬Äɤ¤¤Ä¤«¤Ê¤¤¤Î¤«¤Ê¤È»×¤¤
¤³¤ì¤Ï¤µ¤¹¤¬¤Ë¤Ê¤¤¤È»×¤¤¤Þ¤¹¤è¡£Windows ¤È¤¤¤¨¤É¤â OS ¤Ç¤¹¤«¤é¡¢
¤½¤³¤é¤Ø¤ó¤Ï¤­¤Ã¤Á¤ê¤ä¤Ã¤Æ¤¯¤ì¤ë¤Ç¤·¤ç¤¦¡£

¤Á¤ç¤Ã¤ÈµÞ¤¤¤Ç¤¤¤ë¤Î¤Ç¡¢¤³¤ÎÊդǡ£

No. 717 # 68user [URL] [E-mail] 2000/02/11 (¶â) 20:28
> ¤³¤ì¤Ï¤µ¤¹¤¬¤Ë¤Ê¤¤¤È»×¤¤¤Þ¤¹¤è¡£
²¾¤Ë HDD ¤¬¤È¤Æ¤âÃÙ¤«¤Ã¤¿¤È¤·¤Æ¤â¡¢
>> while (<IN>) {
¤Ç¥Ö¥í¥Ã¥­¥ó¥°¤¹¤ë¤À¤í¤¦¤«¤é¡¢Æɤá¤Ê¤«¤Ã¤¿¤±¤É½èÍý¤¬
Àè¤Ë¿Ê¤à¤Ê¤ó¤Æ¤³¤È¤Ï¤Ê¤¤¤È»×¤¦¡¢¤È¤¤¤¦¤³¤È¤Ç¤¹¡£
# ¤³¤³¤Ç¥Ö¥í¥Ã¥­¥ó¥°¤·¤Æ¤¯¤ì¤Ê¤¤¤È¡¢OS ¤Î°ÕÌ£¤¬¤Ê¤¤¡£

No. 718 # ¥á¥ê¥¯¥ê¥¦¥¹ 2000/02/12 (ÅÚ) 00:36
½é¤á¤Þ¤·¤Æ¡¢¥»¥¬£Â£Â£Ó¤Î²áµî¥í¥°À¨¤¤¤Ç¤¹¡¢
¤´¶ìÏ«ÍͤȤ·¤«¸À¤¨¤Þ¤»¤ó¡¢
¤Þ¤¿¡¢¤¸¤Ã¤¯¤ê¸«¤µ¤»¤Æ¤â¤é¤¤¤Ë¤­¤Þ¤¹¡¢
¡Êº£¤«¤é¤ß¤ë¤ó¤À¤±¤É¡¢¡¢¡¢¡Ë

No. 719 # ¤¿¤Þ¤ê 2000/02/12 (ÅÚ) 02:10
> ²¿¥Ð¥¤¥ÈÁ÷¤Ã¤¿¤éÀÚ¤ì¤ë¡¢¤Ê¤É¤È¤¤¤¦ºÆ¸½À­¤Ï¤¢¤ê¤Þ¤¹¤«?
ºÆ¸½À­¤Ï¤Ê¤¤¤è¤¦¤Ç¤¹¡£
Àܳ¤¬ÀÚ¤é¤ì¤¿»þÅÀ¤Ç¤Î¥µ¥¤¥º¤ÏÉÔÄê¤Ç¤·¤¿¡£

> 1¥Ð¥¤¥È¤º¤ÄÁ÷¤Ã¤Æ¤ß¤ë¤È¤É¤¦¤Ç¤·¤ç¤¦¡£
¤¨¤Ã¤È¡¢¶ñÂÎŪ¤Ë¤É¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤¤¤¤¤ó¤Ç¤·¤ç¤¦¤«¡©
read¤Ç1¥Ð¥¤¥È¤º¤ÄÆɤó¤Ç¤¤¤¯¤Î¤Ç¤·¤ç¤¦¤«¡£¤Á¤ç¤Ã¤È»î¤·¤Æ¤ß¤Þ¤¹¡£

> ¤Þ¤¿¡¢ÀÚ¤ì¤ë¤Î¤Ï¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤Ç¤¹¤«? ¥³¥Þ¥ó¥É¥³¥Í¥¯¥·¥ç¥ó¤Ç¤¹¤«?
¤¹¤¤¤Þ¤»¤ó¡¢ÀâÌÀ¤¬Â­¤ê¤Ê¤«¤Ã¤¿¤è¤¦¤Ç¡£
¤É¤¦¤ä¤éQUIT¤ÏÁ÷¿®¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤Ê¤Î¤Ç¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤¬ÀÚ¤é¤ì¤Æ¤¤¤ë¤è¤¦¤Ç¤¹¡£

>> FTPd¤¬¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤ò²òÊü¤·¤Ê¤¤¤è¤¦¤Ê¾õÂÖ
FTPd¤¬µ¯Æ°Ãæ¤Ï¥¨¥¯¥¹¥×¥í¡¼¥é¤«¤é¤â¥Õ¥¡¥¤¥ë¤Îºï½üÅù¤¬¤Ç¤­¤Þ¤»¤ó¡£
¤â¤Á¤í¤ó¥¹¥¯¥ê¥×¥È¤¬½ªÎ»¤·¤Æ¤¤¤Æ¤â¡¢¤Ç¤¹¡£
FTPd¤ò½ªÎ»¤µ¤»¤ë¤È¡¢Á÷¿®¤·¤¿¥Õ¥¡¥¤¥ë¤¬¸µ¥µ¥¤¥º°Ê²¼(ÉÔÄê)¤Ç¤¢¤ë¤È¤¤¤¦´¶¤¸¤Ç¤¹¡£
¤½¤¦¤Ê¤ë¤Èºï½üÅù¤â²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£
¡Ö¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤«¥³¥Þ¥ó¥É¥³¥Í¥¯¥·¥ç¥ó¤«¡×¤È¤¤¤¦¤Î¤Ï¼«Ê¬¤Ë¤Ï¤ï¤«¤ê¤Þ¤»¤ó¡£

> ¤¢¤È¡¢¤³¤Î¥³¡¼¥É¤ÎÁ°¸å¿ô¹Ô¤ò¸«¤»¤Æ¤â¤é¤¨¤Þ¤¹¤«?
°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
¤Û¤È¤ó¤Éftptrans.pl¤òήÍѤµ¤»¤ÆÌã¤Ã¤Æ¤Þ¤¹(^^;

if ($mode eq 'put') {
    &send_command(COMMAND, "STOR $target_file\r\n");
} elsif ($target_file =~ m|/$|) {
    &send_command(COMMAND, "LIST $target_file\r\n");
} else {
    &send_command(COMMAND, "RETR $target_file\r\n");
}

&client_work(DATA, $data_connection_host, $data_connection_port);
open(IN, $infile) || die "$infile: $!";
binmode(IN);
while (<IN>) {
    print DATA $_;
}
close(IN) || die "close: $!";
&read_response(COMMAND);
close(DATA) || die "close: $!";

&send_command(COMMAND, "QUIT$CRLF");
&read_response(COMMAND);
close(COMMAND) || die "close: $!";

> # ¤³¤³¤Ç¥Ö¥í¥Ã¥­¥ó¥°¤·¤Æ¤¯¤ì¤Ê¤¤¤È¡¢OS ¤Î°ÕÌ£¤¬¤Ê¤¤¡£
Åö¤Æ¤¬¤Ï¤º¤ì¤Æ¤¿¤è¤¦¤Ç¤¹¤Í(^^;
¼ÂºÝ²þÁ±¤µ¤ì¤Ê¤«¤Ã¤¿¤Ç¤¹¤·¡£


¥Õ¥¡¥¤¥ë¤¬Á÷¿®¤·½ª¤ï¤ëÁ°¤ËQUIT¤¬Á÷¿®¤µ¤ì¤Æ¤ë¤È¸À¤¦¤³¤È¤Ï¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤¬
ÀÚÃǤµ¤ì¤ëÁ°¤Ë¥³¥Þ¥ó¥É¥³¥Í¥¯¥·¥ç¥ó¤¬ÀÚÃǤµ¤ì¤ë¤È¸À¤¦¤³¤È¤Ç¤·¤ç¤¦¤«¡©
³Î¤«FTP¤Ã¤Æ¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤ÎÀÚÃÇ¡á¥Ç¡¼¥¿¤Î½ª¤ï¤ê¤Ç¤·¤¿¤è¤Í¡©
¤Ç¤âclose¤Ç¤Ï»à¤ó¤Ç¤Ê¤¤¤è¤¦¤À¤·¡¦¡¦¡¦

¤È¤ê¤¢¤¨¤º1¥Ð¥¤¥È¤º¤Ä¤ò»î¤·¤Æ¤ß¤Þ¤¹¡£

No. 720 # ¤¿¤Þ¤ê 2000/02/12 (ÅÚ) 02:13
¤¢¡¢¤¹¤¤¤Þ¤»¤ó¡¢ÄûÀµ¤Ç¤¹

> &send_command(COMMAND, "QUIT$CRLF");
&send_command(COMMAND, "QUIT\r\n");

¤Ç¤¹¡£

# ÉáÃÊ$CRLF="\r\n";¤Ç¤ä¤Ã¤Æ¤ë¤â¤Î¤Ç(^^;

No. 721 # 68user [URL] [E-mail] 2000/02/12 (ÅÚ) 09:19
> ¥á¥ê¥¯¥ê¥¦¥¹¤µ¤ó
¥á¡¼¥ë¤ÎÊÖ»ö¤ò¤³¤³¤Ç¤µ¤»¤Æ夭¤Þ¤¹¤¬¡¢¿Í¤Î¿¤¤¤È¤³¤í¤«¤é
¥ê¥ó¥¯¤·¤Á¤ã¥À¥á¤Ê¤Î¤Ï¡¢¤ªÆù¤µ¤ó¤Î¤È¤³¤í¤Ç¤¹¡£¤¦¤Á¤Ï
¤É¤³¤«¤é¥ê¥ó¥¯¤·¤Æ¤â¹½¤¤¤Þ¤»¤ó¤Ç¤¹¡£


> FTPd¤¬µ¯Æ°Ãæ¤Ï¥¨¥¯¥¹¥×¥í¡¼¥é¤«¤é¤â¥Õ¥¡¥¤¥ë¤Îºï½üÅù¤¬¤Ç¤­¤Þ¤»¤ó¡£
FTPd ¤¬ STOR Àè¤Î¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤·Â³¤±¤Æ¤¤¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹¤Í¡£
Ææ¤Ç¤¹¤Í¡£

¤³¤Á¤é¤Ë¤Ï Windows ´Ä¶­¤¬¤Ê¤¤¤Î¤Ç¡¢¤½¤Î¤â¤Î¤º¤Ð¤ê¤ÎÅú¤¨¤Ï
¤ï¤«¤ê¤Þ¤»¤ó¤¬¡¢»×¤¤¤Ä¤¯¤Þ¤Þ¤Ë¡£

1. ¤Þ¤º¤Ï¾®¤µ¤Ê¥Õ¥¡¥¤¥ë¤Ç¤ä¤Ã¤Æ¤ß¤Æ²¼¤µ¤¤¡£
2. sub client_work ¤ÎºÇ¸å¤Ç¡¢SOCK ¤Î¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤ò OFF ¤Ë¤·¤Æ¤¤¤ë
  ¡¡($|=1) ¤Î¤Ïºï¤Ã¤Æ¤Þ¤»¤ó¤è¤Í?
3. QUIT Á÷¿®¤ÎÁ°¤Ë &read_response(COMMAND) ¤¬°ì¤Ä­¤ê¤Æ¤Ê¤¤¤ó¤¸¤ã¤Ê¤¤
  ¡¡¤Ç¤¹¤«? ¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤¬³ÎΩ¤·¤¿¤é¡¢
  ¡¡¡¡150 Binary data connection for test/hogemoge (127.0.0.1,33299).
  ¡¡¤È¤¤¤¦¥ì¥¹¥Ý¥ó¥¹¡¢¤µ¤é¤ËžÁ÷¤¬´°Î»¤·¤¿¤é
  ¡¡¡¡226 Transfer complete.
  ¡¡¤È¤¤¤¦¥ì¥¹¥Ý¥ó¥¹¤¬Ê֤äƤ­¤Þ¤»¤ó¤«?
  ¡¡(¤Ç¤â¤³¤ì¤¬¸¶°ø¤¸¤ã¤Ê¤¤¤È»×¤¦¡£¥ì¥¹¥Ý¥ó¥¹¤òÆɤޤʤ¯¤Æ¤âžÁ÷¤Ï¤Ç¤­¤ë¤Ï¤º)
4. $verbose=1 ¤Ë¤·¤Æ¡¢¥×¥í¥È¥³¥ëį¤á¤Æ¤Þ¤¹¤è¤Í?
5. passive ¤Ê¤é¡¢telnet ¥³¥Þ¥ó¥É¤À¤±¤ò»È¤Ã¤ÆÁ÷¿®¤·¤Æ¤ß¤ë¤Î¤â¤¤¤¤¤«¤â¡£
6. ftp ¤Ë¥Ç¥Ð¥Ã¥°¥ª¥×¥·¥ç¥ó¤òÉÕ¤±¤Æ¡¢¥×¥í¥È¥³¥ë¤ò´Ñ»¡¤·¤Æ¤ß¤Æ¤Ï¡£

>> 1¥Ð¥¤¥È¤º¤ÄÁ÷¤Ã¤Æ¤ß¤ë¤È¤É¤¦¤Ç¤·¤ç¤¦¡£
> ¤¨¤Ã¤È¡¢¶ñÂÎŪ¤Ë¤É¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤¤¤¤¤ó¤Ç¤·¤ç¤¦¤«¡©
Î㤨¤Ð¤³¤ó¤Ê´¶¤¸¤Ç¤¹¡£
    &send_command("STOR $target_file\r\n");
    &client_work(DATA,$data_connection_host,$data_connection_port);
    &read_response(COMMAND);

    use IO::File;
    sysopen(IN,$infile,O_RDONLY);
    binmode(IN); # sysopen ¤Ê¤éÉÔÍפ«¤Ê?
    while (1){
        $nread = sysread(IN,$buf,1);
        $read_size += $nread;
        last if ( $nread == 0 );
        print "$read_size read ";
        print DATA $buf || die "$!"; # À®¸ù¤·¤¿¤«¤É¤¦¤«¥Á¥§¥Ã¥¯
        print "$read_size send.\n";
    }
    close(DATA); close(IN); &read_response(COMMAND);
    &send_command("QUIT$CRLF"); &read_response(COMMAND); close(COMMAND);
¤È¤ê¤¢¤¨¤º¡¢²¿¥Ð¥¤¥ÈÌܤǤ³¤±¤Æ¤¤¤ë¤Î¤«¤ÏÄ´¤Ù¤é¤ì¤ë¤Ç¤·¤ç¤¦¡£
¤¿¤À¤·¡¢¥Ñ¥±¥Ã¥È¥ì¥Ù¥ë¤Ç 1¥Ð¥¤¥È¤º¤Ä¤Î¥Ç¡¼¥¿¤¬Á÷¤é¤ì¤ë¡¢¤È¤¤¤¦
ÊݾڤϤ¢¤ê¤Þ¤»¤ó¡£

Ç°¤Ë¤ÏÇ°¤òÆþ¤ì¤Æ¡¢print DATA ¤ÎÂå¤ï¤ê¤Ë syswrite(DATA,...) ¤ò
»È¤Ã¤Æ¤ß¤ë¤Î¤â¤¤¤¤¤«¤â¡£
# syswrite ¡á select(DATA);$|=1;binmode(DATA);print DATA ¤È
# Ʊ¤¸¤Ï¤º¤À¤È»×¤¦¤ó¤Ç¤¹¤¬¡¢°ã¤¤¤Þ¤·¤¿¤Ã¤±¡£


Solaris ¤Î ftpd Áê¼ê¤Ë»î¤·¤Æ¤¤¤Æ»×¤Ã¤¿¤ó¤À¤±¤É¡¢
    http://X68000.startshop.co.jp/~68user/net/ftp-5.html
> ¼¡¤Î¥¢¥¯¥·¥ç¥ó¤Ï
> ¡¡¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤Î³ÎΩ¤Ê¤Î¤«
> ¡¡¥³¥Þ¥ó¥É¥³¥Í¥¯¥·¥ç¥ó¤«¤é¤Î¥¨¥é¡¼¥ì¥¹¥Ý¥ó¥¹¤Ê¤Î¤«
> ¤Î¤É¤Á¤é¤Ê¤Î¤«¤¬ ¤ï¤«¤é¤Ê¤¤¤Î¤Ç¤¹¡£
¤³¤ó¤ÊÊѤʻÅÍͤϡ¢¤â¤·¤«¤·¤Æ FreeBSD ¤Î ftpd ¤À¤±¤«¤â¤·¤ì¤Ê¤¤¡Ä¡£
Ä´¤Ù¤Æ¤ª¤«¤Í¤Ð¡£

No. 722 # ¥¢¡¼¥´¥ó 2000/02/13 (Æü) 20:17
¤Ï¤¸¤á¤Þ¤·¤Æ¡£¥²¡¼¥à¤Ç¤ï¤«¤é¤Ê¤¤»ö¤¬¤¢¤Ã¤¿¤Î¤Ç¡¢Ã¯¤«¶µ¤¨¤Æ²¼¤µ¤¤¡£
¡Ö¼·¥ÄÉ÷¤ÎÅç ʪ¸ì¡×¤È¤¤¤¦¥²¡¼¥à¤Ê¤Î¤Ç¤¹¤¬¡¦¡¦¡¦
¡ÊÃΤäƤ¤¤ë¿Í¡¢¤¤¤ë¤«¤Ê¤¡¡¦¡¦¡¦¡Ë
Â裱£±¾Ï ¡Ø¾®¤µ¤¯¤Æ¥­¥ì¥¤¤Êʪ¡Ù¡¦¡¦¡¦¤Ç¡¢¤É¤¦¤·¤¿¤é¤¤¤¤¤Î¤«¡¢¤ï¤«¤ê¤Þ¤»¤ó¡£ ¤¢¤Ã¤¿»ö¤È¤¤¤¨¤Ð¡¢Çò¥¬¥é¥¹¤Î¥Ò¥å¡¼¤È¡¢¥«¥ó¤¾¤¦¤Ë²ñ¤Ã¤¿»ö¤Ç¤¹¡£¤Ç¤­¤ì¤Ð¡¢¤ï¤«¤ë¿Í¡¢¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£
  

No. 723 # ¤¿¤Þ¤ê 2000/02/14 (·î) 05:02
ÊÖ»ö¤¬ÃÙ¤¯¤Ê¤Ã¤Æ¿½¤·Ìõ¤Ê¤¤¤Ç¤¹¡£
¤³¤³ÆóÆü¤Û¤É¿§¡¹¤¢¤Ã¤Æ²¿¤â¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿(^^;

> FTPd ¤¬ STOR Àè¤Î¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤·Â³¤±¤Æ¤¤¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹¤Í¡£
¤Ç¤¹¡£FTPd¦¤ÎÌäÂê¤È¤¤¤¦²ÄǽÀ­¤â̵¤¯¤Ï¤Ê¤¤µ¤¤â¤·¤Þ¤¹¤¬(⤷¡¢ÉáÄ̤Î
¥¯¥é¥¤¥¢¥ó¥È¤ò»ÈÍѤ·¤¿¾ì¹ç¤ÏÅöÁ³¤Ê¤¬¤é¤¦¤Þ¤¯Á÷¿®¤Ç¤­¤Þ¤¹)

¤Þ¤º¡¢ÀèÄø»î¤·¤Æ¤ß¤¿·ë²Ì¤«¤é¡£

¤É¤¦¤ä¤é¸¶°ø¤Ï
> 3. QUIT Á÷¿®¤ÎÁ°¤Ë &read_response(COMMAND) ¤¬°ì¤Ä­¤ê¤Æ¤Ê¤¤
¤À¤Ã¤¿¤è¤¦¤Ç¤¹¡£
¤³¤ì¤òÆþ¤ì¤¿¤é¤Þ¤È¤â¤ËÆ°¤¤¤Æ¤¯¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£

Ç°¤Î¤¿¤á¡¢¾Ü¤·¤¤Êó¹ð¤â
> 1.
¾®¤µ¤Ê¥Õ¥¡¥¤¥ë(¿ôKBÄøÅÙ)¤Ç¤âƱÍͤǤ·¤¿
> 2.
ºï¤Ã¤Æ¤¤¤Þ¤»¤ó¡£
> 4.
¤È¤ê¤¢¤¨¤º¤Þ¤È¤â¤ËÆ°¤¯¤è¤¦¤Ë¤·¤è¤¦¤È¨¶½¤Çºî¤Ã¤Æ¤¤¤¿¤Î¤Ç$verbose=1¤ÎÉôʬ¤Ï
ºï¤Ã¤Æ¤Þ¤·¤¿(^^;
ËÜÍè¤Ï¤½¤¦¤¤¤¦¤È¤­¤³¤½ºÙ¤«¤¯¥Ç¥Ð¥Ã¥°¤¹¤Ù¤­¤Ê¤ó¤Ç¤·¤ç¤¦¤±¤É¡¦¡¦¡¦
> 5. 6.
telnet¤äftp¤ò»È¤¨¤ÐÌäÂê¤Ê¤¯Á÷¿®¤Ç¤­¤Þ¤¹¡£

¤Ê¤ª¡¢1¥Ð¥¤¥È¤º¤ÄÆɤó¤Ç¤¤¤¯ÊýË¡¤Ç¤¹¤¬¡¢
print DATA $buf || die "$!";
¤Ç¤Ï¥Ç¡¼¥¿Åª¤Ë0x30¡¢¤Ä¤Þ¤ê'0'¤Î¤È¤³¤í¤Ç¤Ê¤¼¤«die¤¹¤ë¤è¤¦¤Ç¤¹¡£
print DATA $buf;
¤Î¤è¤¦¤Ë¤¹¤ë¤È¤¦¤Þ¤¯¤¤¤­¤Þ¤·¤¿¡£

¤Þ¤¿¡¢syswrite¤Ë´Ø¤·¤Æ¤Ï»È¤Ã¤¿¤³¤È¤¬¤Ê¤¤¤Î¤Ç¤¢¤Þ¤ê¤ï¤«¤ê¤Þ¤»¤ó¤¬¡¢
°ú¿ô¤Ïsysread¤ÈƱÍͤʷÁ¤Ç¼è¤Ã¤Æ¡¢ÊÖ¤êÃͤϽñ¤­¹þ¤ó¤À¥Ð¥¤¥È¿ô¤Î¤è¤¦¤Ç¤¹¡£
¤Þ¤¿¡¢binmode¤Ïsysopen¤ÇO_BINARY¤ò»ØÄꤷ¤Æ¤ª¤±¤ÐÉÔÍפ«¤È»×¤¤¤Þ¤¹¡£

¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£

No. 724 # 68user [URL] [E-mail] 2000/02/14 (·î) 18:59
> ¤Ï¤¸¤á¤Þ¤·¤Æ¡£¥²¡¼¥à¤Ç¤ï¤«¤é¤Ê¤¤»ö¤¬¤¢¤Ã¤¿¤Î¤Ç¡¢Ã¯¤«¶µ¤¨¤Æ²¼¤µ¤¤¡£
¤³¤³¤Ë¤Ï¥²¡¼¥à¤Ë¾Ü¤·¤¤¿Í¤Ï¤¢¤Þ¤ê¤¤¤Ê¤¤¤è¤¦¤Êµ¤¤¬¤·¤Þ¤¹¡Ä¡£


> ¤É¤¦¤ä¤é¸¶°ø¤Ï
>> 3. QUIT Á÷¿®¤ÎÁ°¤Ë &read_response(COMMAND) ¤¬°ì¤Ä­¤ê¤Æ¤Ê¤¤
> ¤À¤Ã¤¿¤è¤¦¤Ç¤¹¡£
¤Ê¤ë¤Û¤É¡£¤Á¤ç¤Ã¤ÈÉÔ¿ÆÀÚ¤Ê ftpd ¤Ç¤¹¤Í (¤ÈËͤϻפ¦)¡£

> ¤Ç¤Ï¥Ç¡¼¥¿Åª¤Ë0x30¡¢¤Ä¤Þ¤ê'0'¤Î¤È¤³¤í¤Ç¤Ê¤¼¤«die¤¹¤ë¤è¤¦¤Ç¤¹¡£
¤Ê¤ó¤Ç¤Ç¤·¤ç¤¦¡£Ä´¤Ù¤Æ¤ß¤è¤¦¡£

> ¤Þ¤¿¡¢binmode¤Ïsysopen¤ÇO_BINARY¤ò»ØÄꤷ¤Æ¤ª¤±¤ÐÉÔÍפ«¤È»×¤¤¤Þ¤¹¡£
¤¢¤¢¤½¤¦¤«¡£(C¤Ç¤¤¤¦¤È¤³¤í¤Î) open ¤Ç¤â²þ¹Ô¥³¡¼¥ÉÊÑ´¹¤Ç¤­¤ë¤ó¤Ç¤¹¤Í¡£

> ¤³¤ó¤ÊÊѤʻÅÍͤϡ¢¤â¤·¤«¤·¤Æ FreeBSD ¤Î ftpd ¤À¤±¤«¤â¤·¤ì¤Ê¤¤¡Ä¡£
> Ä´¤Ù¤Æ¤ª¤«¤Í¤Ð¡£
¤³¤ì¤Ï Solaris ¤Î ftpd ¤Ç¤âƱ¤¸¤Ç¤·¤¿¡£ÊѤʤΡ£

No. 725 # ¥Ï¥ê¡¼ 2000/02/15 (²Ð) 19:43
¤Ï¤¸¤á¤Þ¤·¤Æ¡¢¥Ï¥ê¡¼¤È¿½¤·¤Þ¤¹¡£
¼Â¤Ïº£¡¢K¥·¥§¥ë¤òºî¤Ã¤Æ¤¤¤ë¤ó¤Ç¤¹¤¬¡¢¥·¥§¥ëÆâ¤Ç
export¥³¥Þ¥ó¥É¤òÂǤäƴĶ­ÊÑ¿ô¤òÊѹ¹¤·¤è¤¦¤È¤·
¤Æ¤â¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£ÉáÄ̤Ëexport¥³¥Þ¥ó¥É¤òÂÇ
¤Ã¤Æ¤â¥À¥á¤Ê¤ó¤Ç¤¹¤«¡©¤½¤ì¤È¤â½ÐÍè¤Ê¤¤¤Î¤Ç¤¹¤«¡©
¥·¥§¥ë½é¿´¼Ô¤Ê¤Î¤Ç¡¢¤è¤¯¤ï¤«¤ê¤Þ¤»¤ó¡£
¤è¤í¤·¤¯¡¢¤ª´ê¤¤¤·¤Þ¤¹¡£

No. 726 # 68user [URL] [E-mail] 2000/02/15 (²Ð) 19:59
export HOGE=FUGA ¤Ç ¤Ç¤­¤Þ¤»¤ó¤«¡£

No. 727 # ¥Ï¥ê¡¼ 2000/02/15 (²Ð) 20:09
¤Ï¤¤¡£
¥·¥§¥ë¤ÎÃæ¤Çenv¤òÂǤĤÈÊѹ¹¤·¤¿´Ä¶­ÊÑ¿ô¤ËÊѤï¤Ã¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬
¥·¥§¥ë¤¬½ª¤Ã¤Æ¤â¤¦°ìÅÙ¡¢env¤ò᤯¤È¸µ¤ËÌá¤Ã¤Æ¤¤¤Þ¤¹¡£

No. 728 # 68user [URL] [E-mail] 2000/02/15 (²Ð) 20:35
»Ò¥×¥í¥»¥¹¤Ç¤¤¤¯¤é´Ä¶­ÊÑ¿ô¤ò¤¤¤¸¤Ã¤Æ¤â¡¢¿Æ¥×¥í¥»¥¹¤Ë¤Ï
±Æ¶Á¤·¤Þ¤»¤ó¡£¤³¤ì¤Ï¤É¤ó¤Ê¥·¥§¥ë¤Ç¤âƱ¤¸¤Ç¤¹¡£

¶ñÂÎŪ¤Ë²¿¤ò¤·¤¿¤¤¤Î¤«¤¬¤ï¤«¤é¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢
¤É¤¦¤·¤Æ¤â¤ä¤ê¤¿¤±¤ì¤Ð¡¢eval ¤ò»È¤¦¤·¤«¤Ê¤¤¤Ç¤¹¡£

Prev< No. 677¡Á728> Next  [ºÇ¿·È¯¸À¤ËÌá¤ë] [²áµî¥í¥°°ìÍ÷]