Á°¤Ë¤âƱ¤¸¼ÁÌä¤ò¤·¤¿¤Î¤Ç¤¹¤¬¡¢ find¤Î¸¡º÷¤Ç¡¢»ØÄê¥Ç¥£¥ì¥¯¥È¥ê¡Ê¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¡ËÆâ¤Î ¥Õ¥¡¥¤¥ë¤À¤±¤ò¸¡º÷¤·¡¢-mtime¤ò»ØÄꤷ¤Æ¡¢30ÆüÁ°¤Î¥Õ¥¡¥¤¥ë¤ò ºï½ü¤·¤è¤¦¤È¤·¤Æ¤¤¤Þ¤¹¡£ ÇÛ²¼¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò¸¡º÷¤·¤Ê¤¤¤è¤¦¡¢-prune¡¡¤ò»ØÄꤷ¤Æ¡¢¤Þ¤º¤Ï¡¢ °Ê²¼¤Î¤è¤¦¤Ë¤·¤¿¤Î¤Ç¤¹¤¬¡¢¡É*.csv¡É°Ê³°¤¬É½¼¨¤µ¤ì¤Æ¤¤¤Þ¤¤¤Þ¤¹¡£ find /home/DATA/backup -name '*.csv' -o -name everyday -prune -o -name monthly -prune -o -name tmp -prune -o -name work -prune -o -print ¤È¼Â¹Ô¤¹¤ë¤È¡¢ ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤È¡¢¡Ö*.csv¡×°Ê³°¤Î¥Õ¥¡¥¤¥ë¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£ find /home/DATA/backup -name '*.csv' -o -name everyday -prune -o -name monthly -prune -o -name tmp -prune -o -name work -prune -o -mtime +30 ¤È¼Â¹Ô¤¹¤ë¤È¡¢ ɽ¼¨¤µ¤ì¤ë¤Î¤Ç¤¹¤¬¡¢¤É¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò¸¡ºº¤·¤¿·ë²Ì¤«¤ï¤«¤é¤Ê¤¤¾õÂ֤Ǥ·¤Æ¡¢ ³Îǧ¤È¼ÂºÝ¤Ï¡¢rm¡¡¤ò»ØÄꤷ¤Æ¥Õ¥¡¥¤¥ë¤òºï½ü¤¹¤ë¤Ç¡¢¡Ö-exec ls -l {} \;¡× ¤ò¤·¤Æɽ¼¨¤·¤Æ¤ß¤¿¤Î¤Ç¤¹¤¬¡¢ find /home/DATA/backup -name '*.csv' -o -name everyday -prune -o -name monthly -prune -o -name tmp -prune -o -name work -prune -o -mtime +30 -exec ls -l {} \; ¤È¼Â¹Ô¤¹¤ë¤È¡¢ ²¿¤âɽ¼¨¤µ¤ì¤Þ¤»¤ó¡£ find /home/DATA/backup -name '*.csv' -o -name everyday -prune -o -name monthly -prune -o -name tmp -prune -o -name work -prune -o -mtime +30 -print ¤È¼Â¹Ô¤¹¤ë¤È¡¢ ²¿¤âɽ¼¨¤µ¤ì¤Þ¤»¤ó¡£ Àµ¤·¤¯¡¢·ë²Ì¤¬É½¼¨¤µ¤ì¤ë¤è¤¦¤Ë¡¢ ºÇ½ªÅª¤Ë¤Ï¡¢30ÆüÁ°¤È¤«¡¢90ÆüÁ°¤Î¥Õ¥¡¥¤¥ë¤¬ºï½ü¤Ç¤¤ë¤è¤¦¤Ë ¤·¤¿¤¤¤Î¤Ç¤¹¤¬¡¢¤É¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤è¤¤¤«¡¢ ¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ |
>>4836 ¤Ù¤¿ > find /home/DATA/backup -name '*.csv' -o -name everyday -prune -o -name monthly -prune -o -name tmp -prune -o -name work -prune -o -print > ¤È¼Â¹Ô¤¹¤ë¤È¡¢ > ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤È¡¢¡Ö*.csv¡×°Ê³°¤Î¥Õ¥¡¥¤¥ë¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£ ¤³¤Î·ë²Ì¤¬¤¹¤Ç¤Ë¥Þ¥º¤¤¤ó¤Ç¤¹¤è¤Í? Á°²ó¤Î¤ï¤¿¤·¤Î²óÅú >>4763 68user ¤ÏŪ³°¤ì¤À¤Ã¤¿¤è¤¦¤Êµ¤¤¬¤·¤Þ¤¹¡£ºÇ½ªÅª¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ë¤Î¤Ç¤Ï¤Ê¤¤¤«¤È»×¤¤¤Þ¤¹¡£ % find /home/DATA/backup -name '*.csv' -mtime +30 -exec ls -l {} \; -o -name everyday -prune -o -name monthly -prune -o -name tmp -prune -o -name work -prune ¹½Â¤¤È¤·¤Æ¤Ï ¡¦[¥Õ¥¡¥¤¥ë̾¤¬ *.csv] AND [mtime ¤¬ +30] AND [-exec ls -l] OR ¡¦[¥Õ¥¡¥¤¥ë̾¤¬ everyday] AND [-prune] OR ¡¦[¥Õ¥¡¥¤¥ë̾¤¬ monthly] AND [-prune] OR (ά) ¤È¤Ê¤ê¤Þ¤¹¡£ ¤¿¤À¤· -exec ¤ä -prune ¤Ï¾ï¤Ë¿¿¤Ç¡¢¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¡¦¥Ç¥£¥ì¥¯¥È¥ê¤ò²¼¹ß¤·¤Ê¤¤ ¤È¤¤¤¦ÉûºîÍѤòȯÀ¸¤µ¤»¤ë¤Î¤¬¼çÌÜŪ¤Ç¤¹¤Î¤Ç¡¢¤è¤êÊ¿°×¤Ë½ñ¤¯¤È ¡¦[¥Õ¥¡¥¤¥ë̾¤¬ *.csv] AND [mtime ¤¬ +30] ¤Ê¤é [-exec ls -l] ¤ò¼Â¹Ô OR ¡¦[¥Õ¥¡¥¤¥ë̾¤¬ everyday] ¤Ê¤é [-prune] ¤Ç²¼¹ßÍÞ»ß OR ¡¦[¥Õ¥¡¥¤¥ë̾¤¬ monthly] ¤Ê¤é [-prune] ¤Ç²¼¹ßÍÞ»ß OR (ά) ¤È¤Ê¤ê¤Þ¤¹¡£¤Ê¤ª¡¢¤³¤³¤Ç¤Î OR ¤Ï¡¢º¸ÊÕ¤¬¿¿¤Ê¤é±¦ÊÕ¤Ïɾ²Á¤·¤Ê¤¤¡¢ ¤È¤¤¤¦°ÕÌ£¤Ç¤¹¡£¤Þ¤¿¡¢OR ¤Î³ÆÍ×ÁǤνç½ø¤òÆþ¤ìÂؤ¨¤Æ¤â¡¢¤³¤Î¥±¡¼¥¹ ¤Ç¤ÏÌäÂꤢ¤ê¤Þ¤»¤ó (*.csv ¤È everyday ¤¬Î¾Êý¿¿¤Ë¤Ê¤ë¤³¤È¤Ï¤Ê¤¤¤Î¤Ç)¡£ ŵ·¿Åª¤Ê -prune ¤Î»È¤¤Êý¤ò¤Þ¤È¤á¤ë¤È°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ë¤È¹Í¤¨¤Þ¤¹¡£ - ÆÃÄê¤Î¥Ç¥£¥ì¥¯¥È¥ê°Ê³°¤Ë¤Ä¤¤¤Æ²¿¤« (-print) ¤ò¹Ô¤¦ ¢Í find . -name hoge -prune -o -print - ÆÃÄê¤Î¥Ñ¥¿¡¼¥ó¤Î¥Õ¥¡¥¤¥ë¤Ë²¿¤« (-ls) ¤ò¹Ô¤¦¤¬¡¢ÆÃÄê¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤Ï½ü³°¤¹¤ë ¢Í find . -name \*.csv -ls -o -name hoge -prune - ÆÃÄê¤Î¥Ñ¥¿¡¼¥ó¤Î¥Õ¥¡¥¤¥ë¤Ë²¿¤« (-print) ¤ò¹Ô¤¦¤¬¡¢ÆÃÄê¥Ç¥£¥ì¥¯¥È¥ê¤À¤±¤Ï ½ü³°¤¹¤ë¡£¤¿¤À¤·ÆÃÄê¤Î¥Ñ¥¿¡¼¥ó¤Ë¤âÆÃÄê¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤â°ìÃפ·¤Ê¤¤¾ì¹ç¤Ï¡¢ Ê̤β¿¤«¤ò¹Ô¤¦ (-ls)¡£ ¢Í find . -name \*.csv -print -o -name hoge -prune -o -ls |
>>4837 68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ÊÖ»öÃÙ¤ì¤Æ¤¹¤ß¤Þ¤»¤ó¡£ °ìÅÙ¡¢ÆâÍƤòÆɤó¤Ç¡¢³Îǧ¤·¤Æ¤ß¤Þ¤¹¡£ ¤½¤ì¤Ç¡¢ºÆÅÙ¡¢¼ÁÌ䤷¤Þ¤¹¡£ |
>>4837 68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ´üÂÔ¤·¤¿·ë²Ì¤¬ÆÀ¤é¤ì¤Þ¤·¤¿¡£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¡£ °Ê²¼¤Î¥Ú¡¼¥¸¤ò¸«¤Æ¼ÁÌ䤵¤»¤Æ¤¤¤¿¤À¤¤Þ¤¹¡£ http://x68000.q-e-d.net/~68user/net/http-1.html telnet¡ÊWindowsXP¤Ëɸ½à¤Ç¤Ä¤¤¤Æ¤¤¤¿¤â¤Î¤Ç¤¹¡Ë¤Ç¡¢ % telnet www.cs.gunma-u.ac.jp 80 ¤È¥³¥Þ¥ó¥É¤òÂǤäƤ⡢¥³¥Þ¥ó¥É¤¬Ìµ¸ú¤Ç¤¹¡¢¤È½Ð¤Æ¤·¤Þ¤¤¤Þ¤¹¡£ ¤³¤³¤ÇµÍ¤Þ¤Ã¤Æ¤·¤Þ¤Ã¤Æ¡¢Àè¤Ø¿Ê¤á¤Ê¤¤¤Ç¤¤¤Þ¤¹¡£ help¤ò¸«¤Æ¤ß¤Æ¡¢open¤«¤Ê¤È»×¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢¤½¤ì¤Ç¤âÀܳ¤Ç¤¤Ê¤¤¾õ¶·¤Ç¤¹¡£ google¤Ç¸¡º÷¤·¤Æ¤â¤ß¤¿¤Î¤Ç¤¹¤¬¡¢Í×ÎΤòÆÀ¤Þ¤»¤ó¤Ç¤·¤¿¡¦¡¦¡¦ ²¿¤«²ò·èË¡¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡© ¥×¥í¥Ð¥¤¥À¤«¤é¤Ï¡¢ÆÃÊ̤Êproxy¤ò»È¤ï¤Ê¤¤¤ÈÂÌÌܤǤ¹¤È¤Ï¸À¤ï¤ì¤Æ¤¤¤Þ¤»¤ó¡£ ¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ |
>>4840 ¤Þ¤ë¤³ telnet ¤Îµ¯Æ°¤Î»ÅÊý¤ò´ª°ã¤¤¤·¤Æ¤¤¤ë¤è¤¦¤Ë¸«¤¨¤Þ¤¹¡£ ¥¹¥¿¡¼¥È > ¤¹¤Ù¤Æ¤Î¥×¥í¥°¥é¥à > ¥¢¥¯¥»¥µ¥ê ¤Ç ¥³¥Þ¥ó¥É ¥×¥í¥ó¥×¥È ¤òµ¯Æ°¤·¤Þ¤¹¡£¤¹¤ë¤È¥¦¥£¥ó¥É¥¦¤¬³«¤ Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\user> ¤Ê¤É¤Èɽ¼¨¤µ¤ì¤ë¤Ï¤º¤Ç¤¹¡£ ¤³¤³¤Ç telnet www.cs.gunma-u.ac.jp 80 ¤È¥¿¥¤¥×¤·¤Æ¤¯¤À¤µ¤¤¡£ http://x68000.q-e-d.net/~68user/net/win-telnet.html ¤Ë¤¢¤ë¤È¤ª¤ê¥¨¥³¡¼¥Ð¥Ã¥¯¤Ï¤µ¤ì¤Þ¤»¤ó¤¬¡¢ GET / HTTP/1.0(Enter) (Enter) ¤È¤¹¤ë¤È¼èÆÀ¤·¤¿ HTML ¤¬É½¼¨¤µ¤ì¤ë¤Ï¤º¤Ç¤¹¡£¡Ö(Enter)¡×¤Ï XP ¤Ç¤¢¤ì¤ÐÉáÄÌ¤Ë Enter ¥¡¼²¡²¼¤Ç¤¤¤±¤ë¤È»×¤¤¤Þ¤¹¡£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¡£ °Ê²¼¤Î¥Ú¡¼¥¸¤ò»²¹Í¤Ë¤µ¤»¤Æ¤¤¤¿¤À¤¤Þ¤·¤Æ¡¢¼ÁÌ䤵¤»¤Æ¤¤¤¿¤À¤¤Þ¤¹¡£ http://x68000.q-e-d.net/~68user/webcgi/char-code-2.html °Ê²¼¤Î¤è¤¦¤Ëµ¡¼ï°Í¸ʸ»ú¤Î¥Á¥§¥Ã¥¯¤ò¤µ¤»¤Æ¤ß¤¿¤È¤³¤í ¡ÖÃúÌܡפȤ¤¤¦Ê¸»ú¤¬C3FA CCDC¤È¤Ê¤ê¡¢FACC¤¬90¶è¤Î¥Á¥§¥Ã¥¯¤Ë °ú¤Ã¤«¤«¤Ã¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£ $fradrs = $_POST['adrs']; $check = mb_convert_encoding($fradrs,'EUC-JP'); if (ereg("\x8E[\xA0-\xDF]|[\xAD\xF9\xFA\xFB\xFC][\xA1-\xFE]", $check)) { ¤³¤¦¤¤¤Ã¤¿¾ì¹ç¤Ï¤É¤Î¤è¤¦¤ËÂн褷¤¿¤é¤è¤¤¤Ç¤·¤ç¤¦¤«¡£ ¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ |
>>4842 yuki ¤½¤Î¥Ú¡¼¥¸¤Ç¤â¾Ò²ð¤·¤Æ¤¤¤Þ¤¹¤¬¡¢Ê¸»úñ°Ì¤Ç¥Þ¥Ã¥Á¤µ¤»¤ë¤¿¤á¤Ë http://www.din.or.jp/~ohzaki/perl.htm#JP_Match ¤È¤¤¤¦¹©Éפò¤·¤Æ¤¤¤Þ¤¹¡£ PHP ¤Ç¤¢¤ì¤Ð mb ·Ï¤Î´Ø¿ô¤ò»È¤¨¤Ðʸ»úñ°Ì¤ÇÀÚ¤ê½Ð¤»¤ë¤È»×¤¤¤Þ¤¹¤¬¡¢ ¤¤¤ï¤æ¤ëµ¡¼ï°Í¸ʸ»ú¤ËÂбþ¤·¤Æ¤¤¤ë¤«¤É¤¦¤«¤ï¤«¤é¤Ê¤¤¤Î¤Ç¤Þ¤º¤Ï »î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£Âбþ¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢¾åµ¤Î¤è¤¦¤Ê¤ä¤êÊý¤Ç 1ʸ»ú¤º¤Ä¼è¤ê½Ð¤¹É¬Íפ¬¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ |
>>4843 68userÍÍ ¤´½õ¸À¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¤´°ÆÆ⤤¤¿¤À¤¤¤¿¥Ú¡¼¥¸¤ò»²¹Í¤Ë¤·¤Æ°Ê²¼¤Î¤è¤¦¤Ëµ½Ò¤·¤¿¤È¤³¤í ÁÛÄêÄ̤ê¤ËÆ°¤¯¤³¤È¤ò³Îǧ¤Ç¤¤Þ¤·¤¿¡£ $ascii = '[\x00-\x7F]'; $twoBytes = '[\x8E\xA1-\xFE][\xA1-\xFE]'; $threeBytes = '\x8F[\xA1-\xFE][\xA1-\xFE]'; $fradrs = $_POST['adrs']; $check = mb_convert_encoding($fradrs,'EUC-JP'); if (ereg("^($ascii|$twoBytes|$threeBytes)*(\x8E[\xA0-\xDF]|[\xAD\xF9\xFA\xFB\xFC][\xA1-\xFE])", $check)) { echo "¥Þ¥Ã¥Á¤·¤Þ¤·¤¿¡£\n"; mb·Ï¤Ï»ä¤Î̤½Ï¤µ¤æ¤¨¤«¤¦¤Þ¤¯Æ°ºî¤·¤Þ¤»¤ó¤Ç¤·¤¿¡Ä¡£ 68userÍÍ¡¢¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ |
http://x68000.q-e-d.net/~68user/unix/pickup?freebsd-update freebsd-update¤Ç¤°¤°¤ë¤È¾å°Ì¤Ë°ú¤Ã¤«¤«¤ê¡¢ÇÒ¸«¤·¤Þ¤·¤¿¡£ ¡Ö¤¢¤¯¤Þ¤Ç 5.1-STABLE¤òÄɤ䫤±¤Æ¤¤¤ë¡×¤È¤¤¤¦µ½Ò¤¬¤¢¤ê¤Þ¤¹¤¬¡¢ ¤ª¤Ã¤«¤±¤Æ¤¤¤ë(¤¤¤¿)¤Î¤Ï'5.1 security fix branch'(RELENG_5_1)¤Ç¡¢ 5.1-STABLE¤È¤¤¤¦¥Ö¥é¥ó¥Á¤Ï¸ºß¤·¤Ê¤¤¤Ç¤¹¡£ ¤Þ¤¿'5-STABLE'¤â5.1-RELEASE¤ò¥Ö¥é¥ó¥Á¤·¤¿Ä¾¸å°Ê³°¤Ï 5.1ÁêÅö¤Ç¤Ï¤Ê¤«¤Ã¤¿¤ï¤±¤Ê¤Î¤Ç¡¢¤ä¤Ï¤ê5.1-STABLE¤È¤¤¤¦µ½Ò¤Ï ½¤Àµ¤µ¤ì¤¿¤Û¤¦¤¬Îɤ¤¤«¤È»×¤¤¤Þ¤¹¡£ |
>>4844 yuki ²¿Å٤⿽¤·Ìõ¤¢¤ê¤Þ¤»¤ó¡£ 4844¤Îµ½Ò¤Ç¤Ï¤¦¤Þ¤¯Æ°¤«¤Ê¤¤¤Ç¤¹¤Í¡Ä¡£ µ¡¼ï°Í¸ʸ»ú¤¬Ê¸Æ¬¤Ë¤¢¤ë¾ì¹ç¤Î¤ßÆ°ºî¤·¤Æ 2ʸ»úÌܰʹߤˤ¢¤ë¾ì¹ç¤Ë¤Ï¥Þ¥Ã¥Á¤·¤Æ¤¯¤ì¤Ê¤¤¤Ç¤¹¡£ Àµµ¬É½¸½¤Ë¤Ä¤¤¤Æ¤â¤¦¾¯¤·ÊÙ¶¯¤·¤Æ¤¤Þ¤¹¡£ |
>>4846 yuki ¥À¥á¤Ç¤¹¤«¤Í¤§? ¤¢¤Ã¤Æ¤¤¤ë¤è¤¦¤Êµ¤¤¬¤·¤Þ¤¹¤¬¡£ $_POST['adrs']¡¦$check ¤Î¥Ç¡¼¥¿¤òÌÀ¼¨¤¤¤¿¤À¤±¤ì¤Ð²¿¤«¤·¤é²óÅú¤Ç¤¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ >>4845 2323 ¤è¤¯Íý²ò¤·¤Æ¤¤¤Ê¤¤¤Î¤Ç³Îǧ¤µ¤»¤Æ¤¤¤¿¤À¤¤¿¤¤¤Î¤Ç¤¹¤¬¡¢ ¡Ö¤¢¤¯¤Þ¤Ç 5.1-STABLE ¤òÄɤ䫤±¤Æ¤¤¤ë¤Ë²á¤®¤Ê¤¤¡× ¤ò ¡Ö¤¢¤¯¤Þ¤Ç '5.1 security fix branch' (RELENG_5_1) ¤òÄɤ䫤±¤Æ¤¤¤ë¤Ë²á¤®¤Ê¤¤¡× ¤È¤¹¤ì¤ÐÀµ³Î¤Êɽ¸½¤È¸À¤¨¤ë¤Ç¤·¤ç¤¦¤«¡£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¡£ ÆÍÁ³¤Ç¤¹¤¬¡¢¤´¶µ¼ø¤¯¤À¤µ¤¤¡£ »ä¤Ïº£¡¢Âç³Ø£´Ç¯À¸¤Ç´¶È¸¦µæ¤ò¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥°¥é¥à¤òºî¤ëɬÍפ¬½Ð¤Æ¤¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£ ¤Ç¤¹¤¬¡¢»ä¤Ï¥×¥í¥°¥é¥ß¥ó¥°¤ÏÁ´¤¯¤Î½é¿´¼Ô¤Ç¡¢¤É¤Î¸À¸ì¤ò»È¤¨¤ÐÎɤ¤¤Î¤«¡¢²¿¤«¤é»Ï¤á¤ì¤Ð¤¤¤¤¤Î¤«¤â¤è¤¯Ê¬¤«¤ê¤Þ¤»¤ó¡£ ¤É¤Ê¤¿¤«¥¢¥É¥Ð¥¤¥¹¤ä¡¢»²¹Í¤È¤Ê¤ê¤½¤¦¤Ê¥×¥í¥°¥é¥à¤ä¥µ¥¤¥È¤ò¶µ¤¨¤Æ失¤Þ¤»¤ó¤«¡© OS¤ÏKNOPPIX¤Ç¡¢¥¢¥É¥Û¥Ã¥¯¥â¡¼¥É(OLSR)¤Ç¤ÎÆ°²è¤ÎžÁ÷¤ò¤·¤¿¤¤¤Ç¤¹¡£ žÁ÷¤µ¤¨¤Ç¤¤ì¤Ð¤¤¤¤¤È¤Î¤³¤È¤Ê¤Î¤Ç¡¢¥×¥í¥°¥é¥à¼«ÂΤϴÊñ¤Ê¤â¤Î¤Ç¤¤¤¤¤è¤¦¤Ç¤¹¡£ ¾ì°ã¤¤¤Ê¼ÁÌ䤫¤â¤·¤ì¤Þ¤»¤ó¤¬¤è¤í¤·¤¯¤ª´ê¤¤¤¤¤¿¤·¤Þ¤¹¡£ |
>>4848 yino »ÄÇ°¤Ê¤¬¤éʹ¤¤¤¿»ö¤â¤Ê¤¤OS¤Ç¤¹¤Î¤Ç¡¢¤ªÎϤˤʤì¤Þ¤»¤ó¡£ ¤¿¤À¡¢¤³¤ÎÍͤʾì¹ç¡¢¤Ò¤¿¤¹¤é¸¡º÷¥µ¥¤¥È¤Ç¥¡¼¥ï¡¼¥É¤òÆþ¤ì¤Æ¸¡º÷¤·¤Æ¤ß¤Æ¤Ï¤¤¤«¤¬¤Ç¤¹¤«¡© ½¢¿¦¤·¤Æ¤â¡¢¤³¤ÎÊÕ¤ê¤ÏÊѤï¤ê¤Þ¤»¤ó¡£ ¤Þ¤º¤Ï¡¢ÊÒ¤Ãü¤«¤é¸¡º÷¤·¤Æ¼«Ê¬¤ÎÌÜŪ¤È¤·¤Æ¤¤¤ë¾ðÊ󤬺ܤäƤ¤¤ë¥µ¥¤¥È¤òõ¤·¤Æ¤ß¤Þ¤·¤ç¤¦¡£ |
>>4849 ¥Ð¥ó¥¬¡¼¥É OLSR ¤Ï¥×¥í¥È¥³¥ë¤Î¤è¤¦¤Ç¤¹¡£ >>4848 yino ¤ï¤¿¤·¤Ê¤é 1. ¤Þ¤ï¤ê¤Ë¸À¸ì¤Îͼ±¼Ô¤¬¤¤¤ë¤« 2. ¤½¤Î¸À¸ì¸þ¤±¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥°¥é¥ß¥ó¥°´ØÏ¢¤Î½ñÀÒ¤¬½ÐÈǤµ¤ì¤Æ¤¤¤ë¤« 3. ¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥°¥é¥ß¥ó¥°¸þ¤¤« 4. ¥×¥í¥°¥é¥ß¥ó¥°½é¿´¼Ô¤¬°·¤¤¤ä¤¹¤¤¸À¸ì¤« ¤È¤¤¤¦´ÑÅÀ¤Ç¹Í¤¨¤Þ¤¹¡£ 1 ¤Ï¡¢¤Þ¤ï¤ê¤ò¸«ÅϤ·¤Æ¤¯¤À¤µ¤¤ (Java ¤¬Â¿¤¤¤Î¤Ç¤Ï¤Ê¤¤¤«¤ÈÁÛÁü¤·¤Þ¤¹¤¬)¡£ ¤³¤ì¤¬ºÇ½ÅÍפÀ¤È»×¤¤¤Þ¤¹¡£ 2 ¤Ï¡¢Java ¤¬°ìÈÖ¡¢¼¡ÅÀ¤¬ Perl ¤Ç¤·¤ç¤¦¤«¡£PHP¡¦Ruby ¤Ï¤³¤ÎÅÀ¤Ï¼å¤¤¡£ 3 ¤Ï¡¢ËܼÁŪ¤Ë¤Ï¤É¤Î¸À¸ì¤Ç¤âƱ¤¸¤Ç¤·¤ç¤¦¤¬¡¢PHP ¤Ê¤É¤Ï̵Â̤˥ϥޤê¤ä¤¹¤½¤¦¤Ê µ¤¤¬¤·¤Þ¤¹¡£ 4 ¤Ï¡¢¤Þ¤¡ Java ¤Ç¤Ï¤Ê¤¤¤«¤È¡£ ¸Ä¿ÍŪ¤Ë¤Ï¡¢Java ¤¬¥¤¥Á¥ª¥·¡¢¼¡ÅÀ¤¬ Perl ¤Ç¤¹ (¼«Ê¬¤¬½ñ¤¯¤Ê¤é Perl ¤« Ruby)¡£ |
>>4850 ¥Ð¥ó¥¬¡¼¥É¤µ¤ó¡¢ >>4849 68user¤µ¤ó ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ ¤È¤ê¤¢¤¨¤º¤Ï¼þ¤ê¤Î¿Í¤«¤éÏäòʹ¤¤¤Æ¤ß¤¿¤¤¤È»×¤¤¤Þ¤¹¡£ ¤¢¤È¤ÏJava¤ÎËܤòÆɤó¤Ç¤¤¤¤¿¤¤¤È»×¤¤¤Þ¤¹¡£ ¤Þ¤¿Êɤˤ¢¤¿¤Ã¤¿¤È¤¤Ï¤³¤³¤ËÍè¤ë¤È»×¤¤¤Þ¤¹¤Î¤Ç¡¢¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¡£ ¤¤¤¤Ê¤ê¤Ç¤¹¤¬¶µ¤¨¤Æ¤Û¤·¤¤¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£ Âç³Ø¤Î²ÝÂê¤Ç¥µ¡¼¥Ð¤Î¸ºß¤¹¤ë¥Þ¥·¥ó¤Î¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤ª¤±¤ë¥Õ¥¡ ¥¤¥ë°ìÍ÷¤òɽ¼¨¤¹¤ë¡£ ¡ãLIST¡ä¤ÈÂǤÁ¹þ¤à¤È¥Õ¥¡¥¤¥ë¤Î°ìÍ÷¤òɽ¼¨¤¹¤ë ¡ãGET ¥Õ¥¡¥¤¥ë̾¡äÂǤÁ¹þ¤à¤È¡¢¥Õ¥¡¥¤¥ë¤ÎÆâÍƤòɽ¼¨¤¹¤ë ¡ãPUT ¥Õ¥¡¥¤¥ë̾¡ä¤Ç¥Õ¥¡¥¤¥ë¤ò¥¢¥Ã¥×¥í¡¼¥É¤¹¤ë¡£ ¡ãQUIT>¤ÈÂǤÁ¹þ¤à¤È¥µ¡¼¥Ó¥¹½ªÎ»¡£¤È¸À¤¦¥×¥í¥°¥é¥à¤òºî¤Ã¤Æ¤¤¤¿¤Î¤Ç¤¹¤¬ ¤¦¤Þ¤¯¼Â¹Ô¤Ç¤¤Þ¤»¤ó¡£¤É¤³¤¬´Ö°ã¤Ã¤Æ¤¤¤ë¤«¶µ¤¨¤Æ¤¤¤¿¤À¤±¤Þ¤»¤ó¤«¡£ #include <netdb.h> #include <stdio.h> #include <fcntl.h> #define BUFMAX 45 #define PORT_NO 10092 #define Err(x) {fprintf(stderr,"server- ");perror(x); exit(0);} static char rmsg[10], smsg[BUFMAX]; static int sofd, nsofd; static struct sockaddr_in sv_addr, cl_addr; static struct hostent *shost; static char shostname[100]; int msgpro(void); int main(int argc, char **argv) { int cadlen; DIR *dirHandle; struct dirent *dirEntry; dirHandle=opendir("."); if(dirHandle){ while(0!=(dirEntry=readdir(dirHandle))){ puts(dirEntry->d_name); } closedir(dirHandle); } sofd = socket(AF_INET, SOCK_STREAM, 0); if(sofd < 0) Err("socket"); if(gethostname(shostname, sizeof(shostname)) < 0) Err("gethostname"); shost = gethostbyname(shostname); if(shost == NULL) Err("gethostbyname"); bzero((char *)&sv_addr, sizeof(sv_addr)); sv_addr.sin_family = AF_INET; sv_addr.sin_port = htons(PORT_NO); memcpy((char *)&sv_addr.sin_addr, (char *)shost -> h_addr, shost -> h_length); if (bind(sofd,(struct sockaddr *)&sv_addr, sizeof(sv_addr)) < 0) Err("bind"); if(listen(sofd, 1) == -1) Err("listen"); while(1){ cadlen = sizeof(cl_addr); if((nsofd = accept(sofd, (struct sockaddr *)&cl_addr, &cadlen)) <0) Err("accept"); if(fork() == 0) if(msgpro()==-1){ close(nsofd); printf("END SERVER\n"); if(shutdown(nsofd, 2) < 0) Err("shutdown"); close(nsofd); exit(1); } close(nsofd); } } int msgpro(void) { int cc, cadlen,nbyte; FILE *fp; DIR *dp; struct dirent *p; char *tmp[100]; int i,f; i=0; close(sofd); if(recv(nsofd, rmsg, 10, 0) < 0){ perror("recv");} printf("%s\n",rmsg); if(strcmp(rmsg,"QUIT:")==0){ return -1;} if(strcmp(rmsg,"LIST:")==0){ printf("LSIT:\n"); dp=opendir("./"); while((p=readdir(dp))!=NULL){ tmp[i]=p->d_name; strcat(tmp[i],"\n"); i++; } closedir(dp); tmp[i]="."; for(f=2;f<=i;f++){ nbyte = strlen(tmp[f]); if(send(nsofd, tmp[f], nbyte, 0) < 0) perror("send"); } }else{ int i; char filename[10]; if(strncmp(rmsg,"GET:",4)==0){ printf("%s\n",rmsg); for(i=4;i<=strlen(rmsg);i++){ filename[i-4]=rmsg[i]; } fp = fopen(filename,"r"); while(fgets(smsg, BUFMAX, fp) != NULL){ nbyte = strlen(smsg); if(send(nsofd, smsg, nbyte, 0) < 0) perror("send"); } fclose(fp); }else{ if(strcmp(rmsg,"QUIT:")==0){ printf("shutdown\n"); return -1; }else{ printf("Command not Fountd.\n"); strcpy(smsg,"Command not Found.\n."); nbyte = strlen(smsg); if(send(nsofd, smsg, nbyte, 0) < 0) perror("send"); } } } if(shutdown(nsofd, 2) < 0) Err("shutdown"); close(nsofd); exit(0); } |
>>4852 aki > ¤¦¤Þ¤¯¼Â¹Ô¤Ç¤¤Þ¤»¤ó¡£ ²¿¤ò¤É¤¦¤·¤¿¤é¤É¤¦¤Ê¤ë¤Î¤«ÌÀ¼¨¤·¤Æ¤¯¤À¤µ¤¤¡£ |
>>68user¤µ¤ó ¤¹¤ß¤Þ¤»¤ó¡£ ¼Â¹Ô¤·¤¿¸å¤Ë£Ì£É£Ó£Ô¡¢GET ¥Õ¥¡¥¤¥ë̾¡¢PUT ¥Õ¥¡¥¤¥ë̾¡¢QUIT¤Ê¤ÉÂǤÁ¹þ¤ó¤Ç¤â¤Ê¤Ë¤â ¤ª¤¤Ê¤¤¤ó¤Ç¤¹¡£ |
>>4854 aki Ä󼨤¤¤¿¤À¤¤¤¿¥×¥í¥°¥é¥à¤Ï¥µ¡¼¥Ð¦¤Î¥×¥í¥°¥é¥à¤Ç¤¢¤Ã¤Æ¡¢ 1. ¥µ¡¼¥Ð¤ò¼Â¹Ô¤¹¤ë 2. ÊÌÅÓ telnet ¥³¥Þ¥ó¥É¤Ê¤É¤òÍѤ¤¤Æ¥¯¥é¥¤¥¢¥ó¥È¦¤«¤é¥µ¡¼¥Ð¤Ë¥¢¥¯¥»¥¹ (telnet localhost 10092 ¤Ê¤É) 3. ¤½¤³¤Ç LIST ¤Ê¤É¤ò¥¿¥¤¥×¤¹¤ë ¤È¤¤¤¦¤â¤Î¤Ç¤¹¤¬¡¢¤½¤ì¤ÏÍý²ò¤·¤¿¾å¤Ç¤Î¼ÁÌä¤Ç¤·¤ç¤¦¤«? ¤â¤·Íý²ò¤·¤Æ¤¤¤Ê¤¤¤Î¤Ç¤¢¤ì¤Ð¡¢¤Þ¤º¤Ï¤Þ¤ï¤ê¤Î¿Í¤Ëʹ¤¯¤È¤«¡¢»ñÎÁ¤ò ¤â¤Ã¤ÈÆɤà¤Ê¤É¤·¤Æ³µÇ°¤òÍý²ò¤·¤Æ¤«¤é¤Ç¤Ê¤¤¤È¸úΨ¤¬°¤¤¤È»×¤¤¤Þ¤¹¡£ ¥×¥í¥°¥é¥à¼«ÂΤˤĤ¤¤Æ¤Ï¡¢telnet ¾å¤«¤é LIST:(Ctrl-D) ¤Ê¤É¤ÈÊѤÊÁ÷¿®¤Î»ÅÊý¤ò¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤·¤¿¤¬¡¢°ì±þÆ°¤¯¤è¤¦¤Ç¤¹¡£ |
>>4855 68user¤µ¤ó ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¤è¤¯Íý²ò¤Ç¤¤Æ¤Ê¤«¤Ã¤¿¤ß¤¿¤¤¤Ê¤Î¤Ç¤â¤¦¾¯¤·Í§Ã£¤Ëʹ¤¤¤Æ¤ß¤Þ¤¹ |
º£ÅÙÂç³Ø¤Î²ÝÂê¤Ç¥Þ¥ë¥Á¥¹¥ì¥Ã¥É¥µ¡¼¥Ð¤òºîÀ®¤¹¤ë¤³¤È¤Ë¤Ê¤Ã¤¿¤Î¤Ç¡¢ http://x68000.q-e-d.net/~68user/net/echo-4.html ¤ò»²¹Í¤Ë¥Þ¥ë¥Á¥¹¥ì¥Ã¥É¥µ¡¼¥Ð¤Ë¤Ä¤¤¤ÆÊÙ¶¯¤·¤Æ¤¤¤ë¼Ô¤Ç¤¹¡£ ¤½¤³¤Ç¡¢ÁÇËѤ˵¿Ì䤬¤¢¤ë¤Î¤Ç¤¹¤¬¡¢ ¤³¤Î¥Ú¡¼¥¸¤Ë½ñ¤¤¤Æ¤¢¤ëÆâÍƤϡ¢ËÜÅö¤Ë¥Þ¥ë¥Á¥¹¥ì¥Ã¥É¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡© ¥Þ¥ë¥Á¥¹¥ì¥Ã¥É¤È¤¤¤¦¤È½èÍý¤¬Ê¿¹Ô¤·¤Æ¹Ô¤ï¤ì¤ë¤È¤¤¤¦Ç§¼±¤Ê¤Î¤Ç¤¹¤¬¡¢ ¤³¤Î¼ÂÁõ¤Ç¤Ï¿¿ô¤Î¥½¥±¥Ã¥È¤«¤é¥Ç¡¼¥¿¤¬ÅþÃ夷¤¿¥½¥±¥Ã¥È¤ò½ç¼¡ÁªÂò¤·¤Æ ½èÍý¤ò¤¹¤ë¡¢¤È¤¤¤¦¤è¤¦¤Ë¸«¤é¤ì¤ë¤Î¤Ç¤¹¤¬¡¦¡¦¡¦¡£ ¤³¤ì¤Ï¥Þ¥ë¥Á¥¹¥ì¥Ã¥É¥µ¡¼¥Ð¤È¸Æ¤ó¤Ç¤â¤è¤í¤·¤¤¤Î¤Ç¤·¤ç¤¦¤«¡© |
HTTP1.1¤ÇKeepAlive¤ÇHTTPS¥µ¡¼¥Ð¤ËÀܳ¤·¤¿¾ì¹ç¤Ë¡¢¥µ¡¼¥Ð¤«¤é¤Î ¥ì¥¹¥Ý¥ó¥¹¤ÎŤµ¤¬Ã»¤¤(500¥Ð¥¤¥È°Ê²¼ÄøÅÙ)¾ì¹ç¡¢¥¯¥é¥¤¥¢¥ó¥È¤¬ ¥¿¥¤¥à¥¢¥¦¥È¤È¤Ê¤ê¥µ¡¼¥Ð¤«¤é¤Î¥ì¥¹¥Ý¥ó¥¹¤¬Æɤá¤Þ¤»¤ó¡£ ¥µ¡¼¥Ð¡¦¥¯¥é¥¤¥¢¥ó¥È¶¦¤ËFEDORA¤ò»ÈÍѤ·¤Æ¤ª¤ê¡¢¥¯¥é¥¤¥¢¥ó¥È¤Ï TCP/IP¤Î¥½¥±¥Ã¥È¡¢OpemSsl¤ò»È¤Ã¤ÆºîÀ®¤·¤Æ¤¤¤Þ¤¹¡£ ÂнèÊýË¡¤Ï²¿¤«¤¢¤ê¤Þ¤¹¤Ç¤·¤ç¤¦¤«¡© |
>>4857 aya ¤É¤¦¤Ê¤ó¤Ç¤·¤ç¤¦¤«¡£°ÊÁ°¤ËƱÍͤλØŦ¤¬¤¢¤Ã¤¿¾ì¹ç¤Ï >>3223 int >>3224 68user >>3226 Netboy >>3227 68user ¤È¤¤¤¦¤È¤³¤í¤Ç»ß¤Þ¤Ã¤Æ¤¤¤Þ¤¹¡£¤½¤Î¸å¡¢¤ï¤¿¤·¤ÎÃ챤ÏÁý¤¨¤Æ¤¤¤Ê¤¤¤¿¤á¡¢ ¤Þ¤Àµ¿Ìä¤Î¤Þ¤Þ¤Ç¤¹¡£ >>4858 masa ¥½¡¼¥¹¤òÄ󼨴ꤤ¤Þ¤¹¡£ ¤Ê¤ª¡¢ËÜÆü¤è¤ê¿ôÆü¡Á¿ô½µ´Ö¤Î´Ö¡¢ÊÖ»ö¤¬¤·¤Ë¤¯¤¤¾õ¶·¤Ë¤Ê¤ê¤½¤¦¤Ê¤Î¤Ç¡¢ ¤´Î»¾µ¤¯¤À¤µ¤¤¡£ |
>>4859 68user ¤µ¤ó ²ò·è¤·¤Þ¤·¤¿¡£ Æɤ߹þ¤â¤¦¤È¤·¤Æ¤¤¤ë¥Ð¥Ã¥Õ¥¡¥µ¥¤¥º¤¬Â礤¹¤®¤¿¤è¤¦¤Ç¤¹¡£ |
remsh¤Ë¤Ä¤¤¤ÆÃΤäƤ¤¤ëÊý¤Ï¤´¶µ¼ø´ê¤¤¤Þ¤¹¡£ ´Ä¶:HP-UX 11 º£¥·¥§¥ë¤òºîÀ®¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢¤¢¤ëAP¥µ¡¼¥Ð¤Î¥·¥§¥ë¤ÎÃæ¤Çremsh¤ò¤·¤Æ¾¤ÎDB¥µ¡¼¥Ð¤Ç¥ß¥É¥ë¤Î¥³¥Þ¥ó¥É¡ÊHiRDB¤Î¥¹¥±¥¸¥å¡¼¥é¡Ë ¤Î·ë²Ì¤È¤½¤Î¥ê¥¿¡¼¥óÃͤÎɸ½à½ÐÎϤò¥Õ¥¡¥¤¥ë¤ËÅǤ½Ð¤¹¤È¸À¤¦½èÍý¤ò¤·¤Æ¤¤¤Þ¤¹¡£ $USER_A¤Ç¥·¥§¥ë¤ò¼Â¹Ô¡ÊHOST=DB¥µ¡¼¥Ð¡Ë # remsh $HOST -l $USER_B -n ". .profile 2>&- ; \$DIR/bin/HiRDB¤Î¥³¥Þ¥ó¥É ; echo \$? " > $FILE ¤³¤Î¾ì¹ç³«È¯´Ä¶¤Ç¤Ï¤¦¤Þ¤¯É¸½à½ÐÎϤηë²Ì¤ò¥Õ¥¡¥¤¥ë¤ËÅǤ½Ð¤»¤ë¤Î¤Ç¤¹¤¬¡¢ ¸ÜµÒËÜÈִĶ¤Ç¤Ï¤¦¤Þ¤¯¤¤¤¤Þ¤»¤ó¡£ ·ë²Ì¤ò¸«¤ë¸Â¤ê¡¢.profile¤¬Æɤ߹þ¤á¤Æ¤Ê¤¤¡¢¤Þ¤¿¤Ï¥ß¥É¥ë¤Î¥³¥Þ¥ó¥É¤¬Æɤ߹þ¤á¤Æ¤¤¤Ê¤¤¡¢¤È¸À¤Ã¤¿´¶¤¸¤Ç¤¹¡£ ¤Á¤Ê¤ß¤Ë¡¢DB¥µ¡¼¥Ð¦¤Î$USER_B¤Î.rhosts¤Ë¤Ï[AP¥µ¡¼¥Ð $USER_A]¤¬µºÜ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¤³¤ÎºÝremsh¤Î¸å¤Î¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤Æ¤¤¤Ê¤¤¸¶°ø¤È¤·¤Æµ¿¤ï¤·¤ÅÀ¤ò¶µ¤¨¤Æ¤¤¤¿¤À¤¤¿¤¤¤Ç¤¹¡£ ¤¿¤È¤¨¤Ð.profile¤ËÌäÂꤢ¤ê¤Ê¤É¡Ä¡£ ¤ª´ê¤¤¤¤¤¿¤·¤Þ¤¹¡£ |
>>4861 toshi7 »×¤¤¤Ä¤¯¤Î¤Ï - remsh ¸å¤Î¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤¬°Û¤Ê¤ë - ¥í¥°¥¤¥ó¸å¤Î´Ä¶ÊÑ¿ô¤¬°Û¤Ê¤ë - ½ÐÎÏÀè¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤¬°Û¤Ê¤ë - HiRDB ¤Î¥³¥Þ¥ó¥É¤Î¾ì½ê¤¬°Û¤Ê¤ë - HiRDB ¤Î¥³¥Þ¥ó¥É¤¬¥¨¥é¡¼¤È¤Ê¤Ã¤Æ¤¤¤ë ¢ª HiRDB ¤ò¼Â¹Ô¤¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢Å¬Åö¤Ê¼«ºî¥×¥í¥°¥é¥à¤ò¼Â¹Ô¤·¡¢ µ¯Æ°¤µ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¥í¥°Åù¤ËµÏ¿¤¹¤ë - ɸ½à¥¨¥é¡¼½ÐÎϤòÊĤ¸¤Æ¤¤¤ë¤Î¤Ç¡¢HiRDB ¤Îɸ½à¥¨¥é¡¼½ÐÎϤؤΠ½ÐÎϤ¬½ÐÎϤµ¤ì¤Æ¤¤¤Ê¤¤ (¤â¤·¤¯¤Ï write(2) ¤Ç¥¨¥é¡¼¤Ë¤Ê¤ë¤¿¤á ÅÓÃæ¤Ç¤³¤±¤Æ¤¤¤ë) ¤¯¤é¤¤¤Ç¤·¤ç¤¦¤«¡£ |
>>4862 68user 68user¤µ¤ó ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ Ä´ºº¤ò¿Ê¤á¤Æ¤¤¤ë¤È¤³¤í¤Ç¤¹¤¬¡¢HiRDB¤Î¥³¥Þ¥ó¥É¤Ç¥¨¥é¡¼¤Ë¤Ê¤Ã¤Æ¤¤¤ë²ÄǽÀ¤¬Âç¤Ç¤¹¡£ ¤Þ¤¿¡¢º£½µorÍè½µÃæ¤Ë¤âremsh¤Î¥Æ¥¹¥È¤¬¤Ç¤¤ëͽÄê¤Ç¤¹¤Î¤Ç¡¢ # remsh $HOST -l $USER_B -n ". .profile 2>&- ; \$DIR/bin/HiRDB¤Î¥³¥Þ¥ó¥É ; echo \$? " > $FILE 2>&1 ¤Çɸ½à¥¨¥é¡¼¤ò½ÐÎϤ·¤Æ¤ß¤Þ¤¹¡£ ¤Á¤Ê¤ß¤Ë¥µ¡¼¥Ð¦¤Î"last | more"¤Î·ë²Ì¤ò¸«¤ë¸Â¤êremsh¼«ÂΤÏÆϤ¤¤Æ¤¤¤ë¤è¤¦¤Ç¤·¤¿¡£ ¤Þ¤¿¡¢¥Æ¥¹¥È¤Î·ë²ÌÉÔÌÀÅÀ¤¬¤¢¤ê¤Þ¤·¤¿¤é¡¢¼ÁÌ䤵¤»¤Æ¤¤¤¿¤À¤¤¤Æ¤â¤è¤í¤·¤¤¤Ç¤·¤ç¤¦¤«¡© µ¹¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ |
¾¯¤·¤º¤Ä¤Ç¤¹¤¬ UNIX¤ÎÉô²° http://x68000.q-e-d.net/~68user/unix/ ¤Î³Æ¥³¥ó¥Æ¥ó¥Ä¤ò¼ê»Ï¤á¤Ë¡¢Web Á´ÂΤΥǥ¶¥¤¥ó¤òÊѹ¹¤·¤Æ¤¤¤¤Þ¤¹¡£ ¤â¤·ÉÔ¶ñ¹ç¤¬¤¢¤ì¤Ð¶µ¤¨¤Æ¤¤¤¿¤À¤±¤ì¤Ð¹¬¤¤¤Ç¤¹¡£ |
68user¤µ¤Þ¡£¤¤¤Ä¤â¡¢½é¿´¼Ô¤ËͤêÆñ¤¤¥µ¥ó¥×¥ë¤ò¤¿¤¯¤µ¤ó¤´Ä󶡤¤¤¿¤À¤ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ HttpClientHttpURLConnection¤òÁö¤é¤»¤¿¤È¤³¤í¡¢¥Ö¥é¥¦¥¶¤Ç¸«¤ë¤ÈÆüËܸì¤ÎÉôʬ ¤¬¡¢Ê¸»ú²½¤±¤·¤Æ¤¤¤Þ¤¹¡£yahoo¤Î¥Ú¡¼¥¸¤ò»Ï¤á¡¢¤¤¤¯¤Ä¤«»î¤·¤¿¤Î¤Ç¤¹¤¬Æ±¤¸ ¾õÂ֤Ǥ¹¡£²½¤±¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤éÎɤ¤¤Î¤Ç¤·¤ç¤¦¤«¡© ¤ªË»¤·¤¤Ã液½Ì¤Ç¤¹¤¬¡¢¤É¤Ê¤¿¤«¤´¶µ¼¨²¼¤µ¤¤¡£ |
>>4867 Ponta http://x68000.q-e-d.net/~68user/net/java-http-url-connection-1.html ¤Ç¤¹¤è¤Í? ¡Ö¥Ö¥é¥¦¥¶¤Ç¸«¤ë¤È¡×¤Î°ÕÌ£¤¬¤ï¤«¤ê¤Þ¤»¤ó¡£¼Â¹ÔÎã¤Ë¤¢¤ë¤È¤ª¤ê¡¢ ¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é¤Î¼Â¹Ô¤òÁ°Äó¤È¤·¤Æ¤¤¤Þ¤¹¡£ |
½é¤á¤Æ¼ÁÌ䤵¤»¤Æ¤¤¤¿¤À¤¤Þ¤¹¡£ 12·î¤«¤éËܳÊŪ¤ËUNIX¤ÎÊÙ¶¯¤ò»Ï¤á¤Æ¡¢¸½ºß¤ÏHP-UX¤Î¶È̳¤Ë½¢¤¤¤Æ¤ª¤ê¤Þ¤¹¡£ »²¹Í»ñÎÁ¤ò¹ØÆþ¤·¤¿¤ê¡¢net¤ÇÄ´¤Ù¤ë¤â¤É¤¦¤·¤Æ¤â¸«¤Ä¤«¤é¤Ê¤¤¡£¡£ ¼ÁÌäÆâÍÆ¡§ ¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤òbyte¤Çɽ¼¨¤µ¤»¤ë¥³¥Þ¥ó¥É¤¬ÃΤꤿ¤¤¤Ç¤¹¡£ ¥Ç¡¼¥¿°Ü¹Ôºî¶È¤ò¤·¤Æ¤¤¤ë¤Î¤Ç¡¢°Ü¹ÔÁ°¥Þ¥·¥ó¤È°Ü¹Ô¸å¤Î¥Þ¥·¥ó¤Ç¤Î ÍÆÎÌ¥Á¥§¥Ã¥¯¤ò¤·¤Ê¤¯¤Æ¤Ï¤¤¤±¤Ê¤¯¤Æ¡£¡£¡£ ÂçÊѽéÊâŪ¼ÁÌä¤Ç¿½¤·Ìõ¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢¤´¶µ¼ø²¼¤µ¤¤¡£ ¢¨HP-UX¡¡11i¤ò»ÈÍѤ·¤Æ¤ª¤ê¤Þ¤¹¡£ |
>>4869 ¤·¤â ¤è¤¯¤ï¤«¤ê¤Þ¤»¤ó¤¬ ls(1) ¤Î·ë²Ì¤Ï»È¤¨¤Ê¤¤¤ó¤Ç¤·¤¿¤Ã¤±? ¤¢¤È¤Ï cksum¡¦wc¡¦find ¤È¤«¡£¤½¤ì°Ê³°¤Ê¤é awk¡¦perl ¤¢¤¿¤ê¤Ç¤·¤ç¤¦¤«¡£ cksum http://docs.hp.com/ja/B2355-60129/cksum.1.html wc http://docs.hp.com/ja/B2355-60129/wc.1.html find . -ls http://docs.hp.com/ja/B2355-60129/find.1.html |
>>4870 68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¥Õ¥¡¥¤¥ë¸Ä¡¹¤Î¥µ¥¤¥º¤Ïcksum¤äwc¤Ç³Î¤«¤Ë³Îǧ¤Ç¤¤Þ¤·¤¿¡£ ¥Ç¥£¥ì¥¯¥È¥ê¤Î¥µ¥¤¥º¤Ïbyteɽ¼¨¤µ¤»¤ë»ö¤ÏÉÔ²Äǽ¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡© du¤ò»ÈÍѤ·¤Þ¤·¤¿¤¬¡¢KB¤À¤Ã¤¿¤Î¤È¥Ö¥í¥Ã¥¯Ã±°Ì¤Ç¤·¤¿¡£ |
>>4871 ¤·¤â HP-UX ¤Ë¸Â¤é¤º¡¢du ¤Ç¤Ï¥Ö¥í¥Ã¥¯¥«¥¦¥ó¥Èµ¡Ç½¤·¤«¤Ê¤¤¤È»×¤¤¤Þ¤¹¡£ http://sonic64.com/2004-05-26.html ¤Î¤è¤¦¤Ë¼«Á°¤Ç¥«¥¦¥ó¥È¤¹¤ë¤·¤«¤Ê¤¤¤Ç¤·¤ç¤¦¡£ |
cygwin¤Çbash¡¡not¡¡find¡¡¡§bash.exe¤È¤¤¤¦¥¨¥é¡¼¤¬¤Ç¤ó¤À¤±¤É¤É¤¦¤¹¤ì¤Ð ¤¤¤¤¤«¶µ¤¨¤í¡ª¡ª¡ª¡ª¡ª¤É¡¼¤»²Ë¤À¤í¡ª¥Ë¡¼¥È½ô·¯¡¢²¶ÍͤÎÊѤï¤ê¤ËÄ´¤Ù¤í¡ª ¥Ñ¥¹¤ÎÀßÄê¤Ï¤·¤Æ¤¢¤ë¡£ ²¶¤â²Ë¤¸¤ã¤Ê¤¤¤«¤é£µÊ¬¤ä¤ë¤Ç¤¹¤°Ä´¤Ù¤ÆÊÖ¿®¤·¤í¡£µ®Íͤé¤Ïé×Ãî¤À¡£ ./bashrcÅù¤â´°àú ¤·¤«¡¼¡¼¡¼¡¼¤·Æ°¤«¤ó¡£³Ú¾¡¤À¤Æ¡£ |
¤ªÀ¤Ïäˤʤê¤Þ¤¹¡£ ¼ÁÌä¤Î¤È¤¤À¤±¸½¤ì¤Æ¥¹¥ß¥Þ¥»¥ó¡£ Perl ¤Ç¡¢ filename -> title aaa.html -> aaa¤Ë¤Ä¤¤¤Æ bbb.html -> bbb¤Ë¤Ä¤¤¤Æ ccc.html -> ccc¤Ë¤Ä¤¤¤Æ ¤ß¤¿¤¤¤Ê¥¿¥Ö¶èÀÚ¤ê¤Î¥Æ¥¥¹¥È¤òÆɤó¤Ç½èÍý¤¹¤ë¤È¤¡¢¥«¥ó¥¿¥ó¤Ë¤Ï while (<>) { ($filename, $title) = <>; } ¤Î¤è¤¦¤Ë¤¹¤ë¤È»×¤¤¤Þ¤¹¤¬¡¢£±¹ÔÌܤ˸«½Ð¤·¤¬Æþ¤Ã¤Æ¤¤¤Æ¡¢ ¤³¤ì¤ò¼Î¤Æ¤¿¤¤¤È»×¤¤¤Þ¤¹¡£ º£¤Ï¡¢ $trash = <>; while (<>) { ($filename, $title) = <>; } ¤Î¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤¹¤¬¡¢ $trash ¤¬£±²ó¤·¤«»È¤ï¤ì¤Æ¤¤¤Þ¤»¤ó¤¬½ñ¤´Ö°ã¤¤¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤«¡¢ ¤È¤¤¤¦·Ù¹ð¤¬½Ð¤Þ¤¹¡£ ·Ù¹ð¤À¤«¤é̵»ë¤¹¤ì¤Ð¤¤¤¤¤è¤¦¤Ê¤â¤Î¤Ç¤¹¤¬¡¢ ¤â¤Ã¤È¥¹¥Þ¡¼¥È¤Ê½ñ¤Êý¤Ï¤¢¤ë¤Ç¤·¤ç¤¦¤«¡£ |
>>4874 ¤Õ¤¯¤· - <>; - my $trash = <>; - (undef)=<>; ¤Î¤¤¤º¤ì¤«¤Ç¤É¤¦¤Ç¤·¤ç¤¦¤«¡£Perl5.8.8 ¤Ç¤ÏÌäÂꤢ¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£ |
>>4875 68user ¤µ¤ó¡¢¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¤¤¤º¤ì¤â 5.10.0 ¤Ç¤â¤¦¤Þ¤¯¤¤¤¤Þ¤·¤¿¡£ (undef) = <>; ¤È¤¤¤¦¤Î¤Ï¼«Ê¬¤Ç»×¤¤¤Ä¤¤¤Æ¤¤¤¿¤ó¤Ç¤¹¤¬¡¢ ¥ê¥¹¥È¥³¥ó¥Æ¥¯¥¹¥È¤Çɾ²Á¤µ¤ì¤Æ¡¢ Á´Éô¤Î¹Ô¤¬ÂåÆþ¤µ¤ì¤¿¤Î¤Á£²¹ÔÌܰʹߤϼΤƤé¤ì¤ë ¡Ê£±¹ÔÌܤâ undef ¤À¤«¤é¼Î¤Æ¤é¤ì¤ë¡Ë ¤è¤¦¤Êµ¤¤¬¤·¤Æ¤¤¤Þ¤·¤¿¡£ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ |
>>4876 ¤Õ¤¯¤· ¤¢¤¢¤½¤¦¤Ç¤¹¤Í¡£½ñ¤¯¤Ê¤é (undef)=scalar(<IN>); ¤Ç¤·¤ç¤¦¤«¡£¤·¤«¤·»Å»ö¤Ç¤³¤Î¥³¡¼¥É¸«¤¿¤é¥¤¥é¥Ã¤È¤·¤Þ¤¹¤Í¤§¡£ |
>>4873 Âç¿Ã ¤´´üÂԤ˱褨¤º»ÄÇ°¤Ç¤¹¤¬¡¢¤¿¤Ö¤ó¿˻¤ÇÁ±Îɤʥץí¤Î³§¤µ¤ó¤È¤«¤«¤é¤Î ²óÅú¤Ë¤Ê¤ë¤È»×¤¤¤Þ¤¹¡£ ¤É¤Î¤¯¤é¤¤´°àú¤«»¯¤·¤¿¤é¿Ê¸À¤¢¤ë¤«¤â¤Ç¤¹¤è¡£ |
¤½¤¦¤¤¤¨¤Ð¡Ê¤É¤¦¤¤¤¨¤Ð¤À¡Ë°ÊÁ°¡Ê¿ôǯÁ°¡ËPerl ¤Ç goto FIN; sub foo {} FIN: ¤À¤È¥¨¥é¡¼¤Ë¤Ê¤ë¤±¤É goto FIN; FIN: sub foo {} ¤Þ¤¿¤Ï goto FIN; sub foo {} FIN: ; ¤À¤È¥À¥á¡¢¤È¤¤¤¦·ï¤¬¤¢¤Ã¤¿¤ó¤À¤±¤É¡¢µÞ¤Ë»×¤¤Î©¤Ã¤Æ perlbug ¤·¤Æ¤ß¤Þ¤·¤¿¡£ £²»þ´Ö¸å¤ËÊÖ»ö¤¬Íè¤Æ¡Ê¤¹¤²¤¨¤Ê¡Ëperlsyn ¤Ë½ñ¤¤¤Æ¤¢¤ë¤±¤É ¤½¤ì¤Ï¥Ð¥°¤Ç¤Ï¤Ê¤¤¡¢¥é¥Ù¥ë¤Î¸å¤Ë¤Ï£±¸Ä°Ê¾å¤Îʸ¤¬¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤È ¤¤¤¦¤³¤È¤Ç¤¹¡££Æ£Á£Ñ¤é¤·¤¤¤Ç¤¹¤Í¡£ |
>>4872 68user ÊÖ¿®¤¬ÃÙ¤¯¤Ê¤ê¤Þ¤·¤¿¡£ 68user¤µ¤ó¤Î¶Ä¤ë¤è¤¦¤Ë¡¢¼«Ê¬¤Ç¥Ä¡¼¥ë¤òºîÀ®¤¹¤ëɬÍפ¬¤¢¤ë»ö¤òÍý²ò¤·¤Þ¤·¤¿¡£ awk¤ò»È¤Ã¤ÆºîÀ®¤·¤è¤¦¤È»×¤¤¤Þ¤¹¡£ ½é¤á¤Æºî¤ë¤Î¤Ç¡¢»þ´Ö¤¬¤«¤«¤ê¤½¤¦¤Ç¤¹¤¬·ë²Ì¤Ï¤Þ¤¿Êó¹ð¤Ë¤¤Þ¤¹¡£ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ |
>>4883 ¤·¤â ¤µ¤ó¡¢ ¤É¤Ã¤Á¤ß¤Á½é¿´¼Ô¤À¤Ã¤¿¤é awk ¤è¤ê Perl ¤ò¤ª¤¹¤¹¤á¤·¤Þ¤¹¡£ ÈÆÍÑÀ¤¬¤¢¤ë¤·²ÄÆÉÀ¤â¹â¤¯¤Ç¤¤ë¤È»×¤¤¤Þ¤¹¡£ ¤Á¤ç¤Ã¤È½ñ¤¤¤Æ¤ß¤ë¤È¤³¤ó¤Ê´¶¤¸¤Ç¤·¤ç¤¦¤«¡£ ¡ú¤µ¤·¤Ç¤¬¤Þ¤·¤±¤ì¤Ð¤¹¤ß¤Þ¤»¤ó¡£¤³¤³¤ÇÆɤà¤Î¤ä¤á¤Æ¤¯¤À¤µ¤¤ ^^ ¡ú ¡ú #! /bin/perl -w # dsize -- ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤Î¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤ò½¸·× use File::Find; $total = 0; find(\&fileProc, '.'); print "Total\t$size\n"; sub fileProc { return unless -f $_; $size = -s $_; print "$File::Find::name\t$size\n"; $total += $size; } |
½éÊâŪ¤Ê¤³¤È¤Ê¤ó¤Ç¤¹¤¬¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ tar.gz ¤Ê½ñ¸Ë¤Ë¥Õ¥¡¥¤¥ë¤òÄɲä·¤¿¤¤¾ì¹ç¡¢ ¤¤¤Á¤¤¤Águnzip¤·¤Ê¤¤¤È¤¤¤±¤Ê¤¤¤ó¤Ç¤·¤ç¤¦¤«¡© ¤Ê¤Ë¤«¥¹¥Þ¡¼¥È¤ÊÊýË¡¤Ï¤¢¤ë¤ó¤Ç¤·¤ç¤¦¤«¡© |
¤Ï¤¸¤á¤Þ¤·¤Æ¡¢¤Ä¤Î¤ê¤ó¡¡¤È¸Æ¤ó¤Ç¤¯¤À¤µ¤¤¡£ ÁᮤǤ¹¤¬x68kÀìÍÑ¥Þ¥¦¥¹¤¬¸Î¾ã¤·¤Þ¤·¤¿¡£ ¾É¾õ¤Ï¤È¤·¤Æ¤Ï¡¢¥«¡¼¥½¥ë¤ÏÁ´¤¯°Û¾ï¤Ê¤¯Æ°ºî¤·¤Þ¤¹¤¬¡¢¥¯¥ê¥Ã¥¯¤¬º¸±¦¤È¤â¤Ç¤¤Ê¤¯¤Ê¤ê¤Þ¤·¤¿¡£¸¶°ø¤Ï¥Ü¥¿¥ó²¼¤Î¥Þ¥¤¥¯¥í¥¹¥¤¥Ã¥Á¤Î¸Î¾ã¤Ç¤Ï¤Ê¤¤¤«¤È»×¤ï¤ì¤Þ¤¹¡£ ¤Ê¤Ë¤«ÂкöË¡¤Ï¤¢¤ê¤Þ¤»¤ó¤«¡© ¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¡£ http://x68000.q-e-d.net/~68user/unix/pickup?find find¤ÎÀâÌÀ¤Î¤È¤³¤í¤Ç¡¢ -atime 4 4ÆüÁ°¤Ë¥¢¥¯¥»¥¹¤µ¤ì¤¿¥Õ¥¡¥¤¥ë -ctime 4 ¤Á¤ç¤¦¤É4ÆüÁ°¤Ë¥Õ¥¡¥¤¥ë¥¹¥Æ¡¼¥¿¥¹¤¬Êѹ¹¤µ¤ì¤¿¥Õ¥¡¥¤¥ë -mtime 4 ¤Á¤ç¤¦¤É3ÆüÁ°¤Ë½¤Àµ¤µ¤ì¤¿¥Õ¥¡¥¤¥ë ¤È¡¢mtime¤À¤±3ÆüÁ°¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤Ï´Ö°ã¤¤¤Ç¤·¤ç¤¦¤«¡© |
find¤Ç¡¢¸¡º÷¤¹¤ëʸ»ú¤¬Ê£¿ô½Ð¤Æ¤¯¤ë¾ì¹ç¤Î µ½Ò¤Ë¤Ä¤¤¤Æ¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Ë¡¢°Ê²¼¤ÎÍͤʡÖYYYYmmdd¡×·Á¼°¤Î ¥Ç¥£¥ì¥¯¥È¥ê¤¬Â¸ºß¤·¤¿¾ì¹ç¤Ç¤¹¤¬¡¢Ì¾Á°¤¬¤¹¤Ù¤Æ¡¢ ¡Ö0¡Á9¡×¤Î¿ô»ú¤Ç¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Î¤ß¤òɽ¼¨¤·¤¿¤¤ ¤Î¤Ç¤¹¤¬¡¢¤É¤Î¤è¤¦¤Ë½ñ¤±¤Ð¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£ find . -name '[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' -type d ¤Çɽ¼¨¤µ¤ì¤ë¤Î¤Ç¤¹¤¬¡¢ [0-9]¤ò8²ó½ñ¤¯°Ê³°¤Ë¡¢°ã¤Ã¤¿½ñ¤Êý¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡£ find . -name '[0-9]*[0-9]' -type d find . -name '[0-9]......[0-9]' -type d find . -name '[0-9]*......[0-9]' -type d find . -name '[0-9]......*[0-9]' -type d ¤È¤«¤·¤Æ¤ß¤¿¤Î¤Ç¤¹¤¬¡£ /tmpÇÛ²¼¤Ë¡¢ 20080301 20080302 20080303 20080303.bk a0080304 2008030a 200a0306 200080307 |
>>4885 maya > tar.gz ¤Ê½ñ¸Ë¤Ë¥Õ¥¡¥¤¥ë¤òÄɲä·¤¿¤¤¾ì¹ç¡¢¤¤¤Á¤¤¤Águnzip¤·¤Ê¤¤¤È¤¤¤±¤Ê¤¤¤ó¤Ç¤·¤ç¤¦¤«¡© r ¤ÇÄɲäǤ¤Þ¤¹¤¬¡¢gzip ¤·¤Æ¤¢¤ë¾ì¹ç¤Ï¤Ç¤¤Ê¤¤¤è¤¦¤Ç¤¹¤Î¤Ç¡¢gunzip ¤¬É¬Í×¤È »×¤ï¤ì¤Þ¤¹ (BSD tar ¤È GNU tar ¤Ç³Îǧ)¡£ >>4886 ¤Ä¤Î¤ê¤ó ¥ä¥Õ¥ª¥¯¤Ë¤è¤¯½ÐÉʤµ¤ì¤Æ¤¤¤ë¤è¤¦¤Ë¸«¤¨¤Þ¤¹¤Î¤Ç¡¢¥Á¥§¥Ã¥¯¤·¤Æ¤ß¤Æ¤Ï¤É¤¦¤Ç¤·¤ç¤¦¤« º£¤Ï¡Ö¥¡¼¥Ü¡¼¥É & ¥Þ¥¦¥¹ [̤»ÈÍÑ]¡×¤¬½Ð¤Æ¤Þ¤¹¤Í¡£ >>4887 mm > ¤È¡¢mtime¤À¤±3ÆüÁ°¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤Ï´Ö°ã¤¤¤Ç¤·¤ç¤¦¤«¡© ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£¸í¤ê¤Ç¤·¤¿¤Î¤Ç½¤Àµ¤¤¤¿¤·¤Þ¤·¤¿¡£ >>4888 ¤Ù¤¿ Perl ¤ÎÀµµ¬É½¸½ (PCRE) ¤Ç¤¢¤ì¤Ð [0-9]{8} ¤â¤·¤¯¤Ï \d{8} ¤Ç¤¹¤¬¡¢POSIX ¤Ë¤ª¤±¤ë ´ðËÜÀµµ¬É½¸½¤ä³ÈÄ¥Àµµ¬É½¸½¤Ç¤Ï¾åµ¤Î¤è¤¦¤Êɽ¸½¤Ï¤Ç¤¤Þ¤»¤ó¤Î¤Ç¡¢find ¤Ë¤³¤À¤ï¤ë ¤Î¤Ç¤¢¤ì¤Ð 8²ó½ñ¤¯¤·¤«¤Ê¤¤¤Ç¤¹¡£ ¤¢¤ë¤¤¤Ï¡¢ ¡¦File::Find ¤ò»È¤Ã¤¿ perl ¤Î¥ï¥ó¥é¥¤¥Ê¡¼¤Ç¤¬¤ó¤Ð¤ë ¡¦¥·¥§¥ëÊÑ¿ô¤ò»È¤¦ csh¡¦tcsh ¤Î¾ì¹ç: % set x='[0-9]' % find . -name "$x$x$x$x$x$x$x$x" sh¡¦bash ¤Î¾ì¹ç: % x='[0-9]' % find . -name "$x$x$x$x$x$x$x$x" ¤Ê¤É¡£ |
>>4889 68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ |
perl¤Î»È¤¤Êý¤Ê¤Î¤Ç¤¹¤¬¡¢ ÆüÉդȻþ´Ö¤òɽ¼¨¤¹¤ë´Êñ¤Ê¤â¤Î¤òºî¤ê¤Þ¤·¤¿¡£ ¼Â¹Ô¤·¤¿¤éÆ°¤¤¤¿¤Î¤Ç¤¹¤¬¡¢¤È¤³¤í¤¬¡¢²¼µ¤Î¤è¤¦¤Ê ¥á¥Ã¥»¡¼¥¸¤¬½Ð¤Þ¤·¤¿¡£ ------------------------------------------------------------ perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = (unset), LANG = "ja_JP.PCK" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). ------------------------------------------------------------ ¤³¤Î¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤µ¤»¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤Ë¤Ï¡¢¤É¤¦¤·¤¿¤é¤è¤¤¤« ¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ ´Ä¶¤Ï¡¢Solari8 °Ê²¼¡¢perl¤Î¥·¥§¥ë¥¹¥¯¥ê¥×¥È ------------------------------------------------------------ #!/usr/local/bin/perl # ($day, $mon, $year) = (localtime(time))[3..5]; printf("Today : %04d/%02d/%02d\n",$year+1900,$mon +1,$day); ($sec, $min, $hour) = (localtime(time))[0..2]; printf("Time : %02d:%02d:%02d\n",$hour,$min,$sec); ------------------------------------------------------------ |
>>4889 68user ¤Ê¤ë¤Û¤É¡£¤³¤³¤é¤Ø¤ó¤Ïzip¤ärar¤Ê¤É¤ÈÈæ¤Ù¤ë¤ÈÉÔÊؤǤ¹¤Í¡£ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ |
>>4891 ¤Ù¤¿ ¡Öperl: warning: Setting locale failed¡×¤Ç¸¡º÷¤¹¤ì¤Ð½Ð¤Æ¤¤Þ¤¹¤¬¡¢ ´Ä¶ÊÑ¿ô PERL_BADLANG ¤òÀßÄꤹ¤ë¤³¤È¤Ç²óÈò²Äǽ¤Ç¤¹¡£¾ÜºÙ¤Ï¸¡º÷´ê¤¤¤Þ¤¹¡£ |
>4889 ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£¥ä¥Õ¡¼¤Î¥ª¡¼¥¯¥·¥ç¥ó ¤Ç¸«¤Æ¤ß¤Þ¤¹¡£ |
>>4893 68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ perl¤Î¥¹¥¯¥ê¥×¥È¤ò¼Â¹Ô»þ¤Î¤ß͸ú¤Ë¤·¤¿¤¤¤Î¤Ç¤¹¡£ perl¤Î¥¹¥¯¥ê¥×¥ÈÆâ¤Çµ½Ò¤¹¤ë¾ì¹ç¤Ï¤É¤Î¤è¤¦¤Ë ÄêµÁ¤¹¤ì¤Ð¤è¤¤¤Î¤Ç¤¹¤«¡£ |
>>4895 ¤Ù¤¿ perl ¥³¥ó¥Ñ¥¤¥ë¤ÎºÝ¤Î Configure »þ¤ËÀßÄꤹ¤ëÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£ ¤½¤ì¤¬ÌµÍý¤Ê¤é #!/bin/sh PERL_BADLANG=0 /foo/bar/baz.pl ¤È wrapper ¤òºî¤ë¤«¡¢env ¥³¥Þ¥ó¥É¤Ç #!/usr/bin/env PERL_BADLANG=0 /usr/local/bin/perl ¤È¤¹¤ë¼ê¤â¤¢¤ê¤Þ¤¹¡£ |
>>4896 68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ #!/usr/bin/env PERL_BADLANG=0 /usr/local/bin/perl # ¤Èperl¤Î¥¹¥¯¥ê¥×¥ÈÆâ¤Ëµ½Ò¤·¤Æ¡¢¼Â¹Ô¤·¤¿¤Î¤Ç¤¹¤¬¡¢ ½èÍý¤¬¤È¤Þ¤Ã¤¿¤È¤¤¤¦¤«¡¢²¿¤â±þÅú¤¬Ê֤äƤ¤Þ¤»¤ó¡£ |
>>4897 ¤Ù¤¿ ¤Ê¤ë¤Û¤É FreeBSD 5.2.1-RELEASE ¤Ç¤ÏÆ°¤¤Þ¤¹¤¬¡¢Linux ¤Ç¤Ï³Î¤«¤Ë ̵¸Â¥ë¡¼¥×¤·¤Æ¤Þ¤¹¤Í¤§¡£ > #!/usr/bin/env PERL_BADLANG=0 /usr/local/bin/perl ¤³¤ì¤Ï FreeBSD 5.2.1-RELEASE ¤Ç¤Ï /usr/bin/env PERL_BADLANG=0 /usr/local/bin/perl ./hoge ¤È²ò¼á¤µ¤ì¤Þ¤¹¤¬¡¢Linux ¤ä Solaris ¤Ç¤Ï /usr/bin/env "PERL_BADLANG=0 /usr/local/bin/perl" ./hoge ¤È¤Ê¤ë¤¿¤á PERL_BADLANG="0 /usr/local/bin/perl" ¤È¤¤¤¦´Ä¶ÊÑ¿ô¤¬ÀßÄꤵ¤ì¤Ä¤Ä /usr/bin/env ./a ¤¬¼Â¹Ô¤µ¤ì¤ë¤â¤Î¤Î¡¢./hoge ¤Î¥·¥§¥Ð¥ó¥°¹Ô¤Ë¤Ï¤Þ¤¿Æ±¤¸ÆâÍƤ¬ ½ñ¤«¤ì¤Æ¤¤¤ë¤¿¤á¡¢±Ê±ó¤Ë execve("./a"); ¤¬¼Â¹Ô¤µ¤ì¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹¤Í¡£ »²¹Í: http://x68000.q-e-d.net/~68user/unix/pickup?%A5%B7%A5%A7%A5%D0%A5%F3%A5%B0 ¤Î Tips.2 ¤È¤¤¤¦¤ï¤±¤Ç env ¥³¥Þ¥ó¥É¤ò»È¤¦¤ä¤êÊý¤Ï°Ü¿¢À¤¬¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¤¬¡¢ #!/bin/sh PERL_BADLANG=0 /foo/bar/baz.pl ¤Ê¤éÆ°¤¯¤È»×¤¤¤Þ¤¹¡£Linux ¤Ç¤ÏÆ°¤¤Þ¤·¤¿¡£ |
>> 4898 > #!/bin/sh > PERL_BADLANG=0 /foo/bar/baz.pl >¤Ê¤éÆ°¤¯¤È»×¤¤¤Þ¤¹¡£Linux ¤Ç¤ÏÆ°¤¤Þ¤·¤¿¡£ ¤ÇÆ°¤¤Þ¤·¤¿¡£ ¿§¡¹¤È¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ |
¤µ¤¤Û¤É¤ªÌ䤤¹ç¤ï¤»¥Ú¡¼¥¸¤è¤ê¤´»ØŦ¤¤¤¿¤À¤¤Þ¤·¤¿¡¢¥¸¥ã¥ó¥ë°ìÍ÷¥ê¥ó¥¯ÀÚ¤ì¤Î·ï¡¢ ½¤Àµ¤·¤Þ¤·¤¿¡£¤´»ØŦ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡äÏ¢Íí¤¤¤¿¤À¤¤¤¿Êý |
2ǯȾ¤Ö¤ê¤Î¿ÍºàÊ罸¤Ç¤¹¡£ http://x68000.q-e-d.net/~68user/tmp/job2.html |
¤³¤ó¤Ë¤Á¤ï¡£ find¥³¥Þ¥ó¥É¤Ë¤Ä¤¤¤Æ¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ ¢£Í×·ï ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ë¸ºß¤¹¤ë31Æü°ÊÁ°¤Î¥Õ¥¡¥¤¥ë¡õ¥Ç¥£¥ì¥¯¥È¥ê¤Îºï½ü¤ò¼Â»Ü¤·¤¿¤¤ ¢£¥³¥Þ¥ó¥É find ./ -mtime +31 -exec ls {} \; -exec rm -r {} \; >> test.log ¢£·ë²Ì ./20070101.trc find: ./aaa: No such file or directory ¢£¼ÁÌ䣱 ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ëºï½üÂоݤȤʤëÆüÉդΥե¡¥¤¥ë20070101.trc¤È¥Ç¥£¥ì¥¯¥È¥êaaa¤òÇÛÃÖ¤·¤Æ¤¤¤Þ¤¹¡£ ºï½ü¥Õ¥¡¥¤¥ë¤Î°ìÍ÷¤ò¼èÆÀ¤·¤¿¤¤¤¿¤á-exec ls {} \;¤ò»ÈÍѤ·¤¿¤Î¤Ç¤¹¤¬¡¢ ¥í¥°¤Ë¤Ï./20070101.trc¤·¤«µºÜ¤¬¤¢¤ê¤Þ¤»¤ó¡£ ¥Ç¥£¥ì¥¯¥È¥ê¤âɽ¼¨¤µ¤»¤ë¤Ë¤Ï²¿¤«¥ª¥×¥·¥ç¥ó¤¬É¬ÍפʤΤǤ·¤ç¤¦¤«¡© ¢£¼ÁÌ䣲 ¼Â¹Ô·ë²Ì¤È¤·¤Æ¤Ïºï½ü¤Ï¹Ô¤ï¤ì¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬Ìá¤êÃͤ¬¥¨¥é¡¼¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ find: ./aaa: No such file or directory¤ÎÉôʬ¤ò»Ø¤·¤Æ¤¤¤ë¤È»×¤¦¤Î¤Ç¤¹¤¬¡¢ ºï½ü¸å¤Ëfind¤·¤Æ¤¤¤ë¤è¤¦¤Ë¸«¼õ¤±¤é¤ì¤Þ¤¹¤¬¤³¤Î¥¨¥é¡¼¤Î½ÐÎϸ¶°ø¤Ï¤Ê¤ó¤Ç¤·¤ç¤¦¤«¡© 1¤È£²¤Î²ò·èÊýË¡¤¬¤¢¤ê¤Þ¤·¤¿¤é¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ µ¹¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ |
>>4902 TKC ¤Þ¤º¡¢-exec ¤ÎÂå¤ï¤ê¤Ë -ok ¤ò»È¤Ã¤Æ²¿¤¬¼Â¹Ô¤µ¤ì¤Æ¤¤¤ë¤«³Îǧ¤·¤Þ¤·¤ç¤¦¡£ > ¥Ç¥£¥ì¥¯¥È¥ê¤âɽ¼¨¤µ¤»¤ë¤Ë¤Ï²¿¤«¥ª¥×¥·¥ç¥ó¤¬É¬ÍפʤΤǤ·¤ç¤¦¤«¡© ./aaa/ ¤ÎÃæ¿È¤¬¶õ¤Ç¤Ï¤Ê¤¤¤Ç¤¹¤«? ¶õ¤Ç¤¢¤ì¤Ð ls ./aaa ¤·¤Æ¤â²¿¤â ɽ¼¨¤µ¤ì¤Ê¤¤¤È»×¤¤¤Þ¤¹¡£ > ºï½ü¸å¤Ëfind¤·¤Æ¤¤¤ë¤è¤¦¤Ë¸«¼õ¤±¤é¤ì¤Þ¤¹¤¬¤³¤Î¥¨¥é¡¼¤Î½ÐÎϸ¶°ø¤Ï > ¤Ê¤ó¤Ç¤·¤ç¤¦¤«¡© find ¤Ï¥Ç¥£¥ì¥¯¥È¥ê¤ò²¼¹ß¤·¤Æ¥Õ¥¡¥¤¥ë¤òõ¤·¤Þ¤¹¤¬¡¢¤ª¤½¤é¤¯ ¥Ç¥£¥ì¥¯¥È¥ê¤òºï½ü¤·¤¿¸å¤Ë¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë²¼¤ê¤è¤¦¤È¤·¤Æ¤¤¤ë ¤Î¤Ç¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡£-prune ¤òÁȤ߹ç¤ï¤»¤ì¤Ð²¼¤ê¤Ê¤¤¤è¤¦¤Ë ¤Ç¤¤ë¤«¤â¤·¤ì¤Þ¤»¤ó (»î¤·¤Æ¤¤¤Þ¤»¤ó)¡£ |
>>4903 68user¤µ¤ó -ok¤ò»ÈÍѤ·¤Æ³Îǧ¤·¤Þ¤·¤¿¡£ ¤´»¡¤·¤ÎÄ̤ê./aaaÇÛ²¼¤¬¶õ¤Î¤¿¤á< ls ... ./aaa >¤È¤Ê¤ê ·ë²ÌŪ¤Ë¥í¥°¤Ë./aaa¤¬½ÐÎϤµ¤ì¤Æ¤¤¤Ê¤¤¤³¤È¤¬¤ï¤«¤ê¤Þ¤·¤¿¡£ find¤Î¥¨¥é¡¼¸¶°ø¤Ï¤ä¤Ï¤êºï½ü¸å¤ËÇÛ²¼¤Ë°ÜÆ°¤·¤Æ¤¤¤ë¤â¤Î¤È»×¤ï¤ì¤Þ¤¹¡£ rm¤Ë¥Ç¡¼¥¿¤¬ÅϤëÁ°¤Ë-prune¤ò»È¤¤²ò¾Ã¤µ¤ì¤Þ¤·¤¿¡£ ºÇ½ªÅª¤Ë¤Ï²¼µ¤Ç¹Ô¤¤¤¿¤¤½èÍý¤¬¤Ç¤¤Þ¤·¤¿¡£ find ./ -mtime +31 -prune -exec ls -d {} \; -exec rm -r {} \; ¤É¤¦¤â¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ |
¤¤¤Ä¤â¤³¤Á¤é¤Ë¤Ï¤ªÀ¤ÏäˤʤäƤޤ¹¡£ flex¤Ë¤Ä¤¤¤Æ¤Î»ØŦ¤Ç¤¹¡£ http://x68000.q-e-d.net/~68user/unix/pickup?flex GNU¤Ç¤ÏºîÀ®¡¦ÇÛÉÛ¤·¤Æ¤Ê¤¤¤è¤¦¤Ç¤¹¡£ http://ftp.gnu.org/gnu/flex/flex.README |
>>4906 hoge > GNU¤Ç¤ÏºîÀ®¡¦ÇÛÉÛ¤·¤Æ¤Ê¤¤¤è¤¦¤Ç¤¹¡£ ¤½¤¦¤Ê¤ó¤Ç¤¹¤«¡£ÃΤê¤Þ¤»¤ó¤Ç¤·¤¿¡£ ftp://ftp.gnu.org/non-gnu/flex/flex.README Flex is a free implementation of the well-known Lex program for lexical analysis. Since it is not (and never was) a GNU package, we don't distribute it here. Please see http://flex.sourceforge.net for the latest release and information. ¤ä flex-2.5.4 (1997ǯ¥ê¥ê¡¼¥¹) ¤Î README Note that flex is distributed under a copyright very similar to that of BSD Unix, and not under the GNU General Public License (GPL), except for the "configure" script, which is covered by the GPL. ¤Ê¤É¤ò¸«¤ë¤Ë¡¢³Î¤«¤Ë flex ¤¬ GNU ¤Ç¤Ï¤Ê¤¤¤è¤¦¤Ç¤¹¤Í¡£ ¤·¤«¤·¤³¤Î½ñÀÒ http://www.ascii.co.jp/books/books/detail/4-7561-3097-6.shtml FlexÆþÌç ¥·¥ê¡¼¥º¡§GNU¥·¥ê¡¼¥º GNU¤Î¥Ä¡¼¥ë¤Î1¤Ä¤È¤·¤Æ¹¤¯»ÈÍѤµ¤ì¤Æ¤¤¤ëGNU¤ÎLexical Scanner Generator¤Ç ¤¢¤ëFlex¤Î²òÀâ½ñ¡£ËÉÙ¤ÊÎã¤È¤È¤â¤Ëµ¡Ç½¤ò¾ÜºÙ²òÀ⠤Ϥɤ¦¤Ê¤ó¤Ç¤¹¤«¤Í¡£ wikipedia(en) ¤Ë¤Ï http://en.wikipedia.org/wiki/Flex_lexical_analyser Flex is a non-GNU project, but the GNU project developed the manual for Flex. ¤È¤¢¤ê¤Þ¤¹¤¬¡¢¡ÖGNU ¤¬ºî¤Ã¤¿ flex ¤Î¥Þ¥Ë¥å¥¢¥ë¡×¤ÎËÝÌõ¤¬¾åµ¤Î¡ÖFlex ÆþÌç¡× ¤À¤Ã¤¿¤ê¤¹¤ë¤ó¤Ç¤·¤ç¤¦¤«¡£ |
>>4907 68user ¤¦¡¼¤ó¡¢¤ä¤Ï¤ê 2.5.3 °ÊÁ°¤Ï GNU ¤À¤Ã¤¿¤Î¤À¤í¤¦¤«¡£ http://cocoa.2ch.net/unix/kako/970/970914036.html ¤è¤ê ----- ¤³¤³¤«¤é ----- Flex ¤Ï¤½¤â¤½¤â non-gnu¤Ë°ÜÆ°¤Ë¤Ê¤Ã¤Æ¡¢ ²¼¤Î Flex 2.5.4¤Î COPYING ¤ß¤¿¤¤¤Ê¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£ -=-=-=-=- Flex carries the copyright used for BSD software, slightly modified because it originated at the Lawrence Berkeley (not Livermore!) Laboratory, which operates under a contract with the Department of Energy: Copyright (c) 1990 The Regents of the University of California. All rights reserved. This code is derived from software contributed to Berkeley by Vern Paxson. The United States Government has rights in this work pursuant to contract no. DE-AC03-76SF00098 between the United States Department of Energy and the University of California. Redistribution and use in source and binary forms with or without modification are permitted provided that: (1) source distributions retain this entire copyright notice and comment, and (2) distributions including binaries display the following acknowledgement: ``This product includes software developed by the University of California, Berkeley and its contributors'' in the documentation or other materials provided with the distribution and in all advertising materials mentioning features or use of this software. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. This basically says "do whatever you please with this software except remove this notice or take advantage of the University's (or the flex authors') name". Note that the "flex.skl" scanner skeleton carries no copyright notice. You are free to do whatever you please with scanners generated using flex; for them, you are not even bound by the above copyright. ----- ¤³¤³¤Þ¤Ç ----- ¡Önon-gnu ¤Ë°ÜÆ°¡×¤È¤¤¤¦µ½Ò¤Ï¤¤¤í¤ó¤Ê¤È¤³¤í¤Ë¤¢¤ë¤¬¡¢¤½¤ì¤òº¬µò¤Ë ¡Ö°ÊÁ°¤Ï GNU ¤À¤Ã¤¿¡×¤È¸À¤¤¤¤ì¤Ê¤¤¡£¸Å¤¤ tarball ¤â¸«¤Ä¤«¤é¤Ê¤¤¤·¡Ä¡£ |
>>4908 68user > ¤¦¡¼¤ó¡¢¤ä¤Ï¤ê 2.5.3 °ÊÁ°¤Ï GNU ¤À¤Ã¤¿¤Î¤À¤í¤¦¤«¡£ flex-2.5.2/COPYING ¤ò³Îǧ¤·¤Þ¤·¤¿¤¬¡¢ >> ²¼¤Î Flex 2.5.4¤Î COPYING ¤ß¤¿¤¤¤Ê¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£ ¤È¤Û¤ÜƱ¤¸¤Ç¤·¤¿¡£¤è¤Ã¤Æ¡¢°ÊÁ°¤Ï flex ¤Ï GNU ¤Ç¤¢¤Ã¤¿¤¬¡¢ ¤¢¤ë»þÅÀ¤«¤é GNU ¤Ç¤Ê¤¯¤Ê¤Ã¤¿¡¢¤Ê¤É¤È¤¤¤¦»ö¼Â¤Ï¤Ê¤¤¤è¤¦¤Ç¤¹¡£ |
>>4907 68user > http://www.ascii.co.jp/books/books/detail/4-7561-3097-6.shtml > FlexÆþÌç > ¥·¥ê¡¼¥º¡§GNU¥·¥ê¡¼¥º ¸å¤Ï¤³¤ì¤À¤±¤¬µ¤¤Ë¤Ê¤Ã¤Æ¤·¤ç¤¦¤¬¤Ê¤¤¤Î¤Ç¡¢¥¢¥¹¥¡¼¤Ë¡Ö¤Ê¤¼ GNU ¥·¥ê¡¼¥º¤Ê¤Î¤«¡×¤È¤¤¤¦ Ì䤤¹ç¤ï¤»¤òÅꤲ¤Þ¤·¤¿¡£ÊÖ»öÍè¤ë¤È¤¤¤¤¤Ê¤¡¡£ # ¤½¤ÎÁ°¤ËÌõ¼Ô¤È»×¤ï¤ì¤ëÊý¤Ë¥á¡¼¥ë¤òÅꤲ¤¿¤â¤Î¤Î¡¢user unknown ¤ÇÊ֤äƤ¤Þ¤·¤¿¡£ |
ÌäÂê¤òÅꤲ¤Ã¤Ñ¤Ê¤·¤Ë¤·¤Æ¤¹¤¤¤Þ¤»¤ó¡£ PHP¤Î¥³¥ó¥Ñ¥¤¥ë¤ËɬÍפÀ¤Ã¤¿¤Î¤Çõ¤·¤Æ¤¤¤¿¤À¤±¤Ç¡¢ flex¤Ë¤Ä¤¤¤Æ¤ÏÁ´¤¯ÃΤé¤Ê¤¤¤ó¤Ç¤¹^^; > ¡ÖGNU ¤¬ºî¤Ã¤¿ flex ¤Î¥Þ¥Ë¥å¥¢¥ë¡×¤ÎËÝÌõ¤¬¾åµ¤Î¡ÖFlex ÆþÌç¡× > ¤À¤Ã¤¿¤ê¤¹¤ë¤ó¤Ç¤·¤ç¤¦¤«¡£ http://www.gnupress.org/book11.html GNU Press¡ÖFlex: The Lexical Scanner Generator¡× http://www.asahi-net.or.jp/~wg5k-ickw/html/online/flex-2.5.4/flex_1.html Ìõ¼Ô¤ÎÊý¤Ë¤è¤ë¡¢¡ÖFlexÆþÌç¡×¤ÈƱÆâÍƤΥڡ¼¥¸¤À¤È»×¤ï¤ì¤Þ¤¹¡£ ISBN¤Îµ½Ò¤«¤é¡¢¤´¿ä»¡¤Î¤È¤ª¤ê ¡ÖGNU ¤¬ºî¤Ã¤¿ flex ¤Î¥Þ¥Ë¥å¥¢¥ë¡×¤ÎËÝÌõ¤¬¡ÖFlex ÆþÌç¡× ¤À¤È¹Í¤¨¤Þ¤¹¤¬¡¢¤¤¤«¤¬¤Ç¤·¤ç¤¦¤«¡£ |
http://x68000.q-e-d.net/~68user/net/net-1.html ¤Î[¥Û¥¹¥È̾¤È¤Ï¡©]¤òÆɤó¤Ç¤¤¤Þ¤·¤¿¤é¡¢http//133.8.2.24/¤Çhttp//www.cs.gunma-u.ac.jp ¤ÈƱ¤¸¥Ú¡¼¥¸¤¬É½¼¨¤µ¤ì¤ë¤Ï¤º¤Ç¤¹¤È ¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤¬¤¬¡¢http//133.8.3.11/¤Ç¤Ê¤¤¤Èɽ¼¨¤µ¤ì¤Ê¤¤¤è¤¦¤Ë»×¤¤¤Þ¤¹¡£»²¹Í¤Ë¤µ¤»¤Æ夤¤Æ¤¤¤Þ¤¹¡£ |
>>4912 hoge flex ¤Ë¤Ä¤¤¤Æ¤Ï¹¹¿·¤·¤Æ¤ª¤ê¤Þ¤¹¡£¤´»ØŦ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ http://x68000.q-e-d.net/~68user/unix/pickup?flex ¡ÖGNU ¥·¥ê¡¼¥º¡×¤Ë¤Ä¤¤¤Æ¤Ï¥¢¥¹¥¡¼¤è¤ê²óÅú¤ò¤¤¤¿¤À¤¤¤¿¤Î¤Ç¤¹¤¬¡¢ »ÄÇ°¤Ê¤¬¤é Web ¤Ç¤Î¸ø³«¤ÏÉԲĤȤΤ³¤È¤Ê¤Î¤Ç¡¢Êè¾ì¤Þ¤Ç»ý¤Ã¤Æ¤¤¤ ¤¿¤¤¤È»×¤¤¤Þ¤¹¡£ >>4913 BK ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£¼è¤êµÞ¤® IP ¥¢¥É¥ì¥¹¤Î¤ß¹¹¿·¤·¤Þ¤·¤¿¡£ |
sh¤Ç¡¢Ê¸»úÎ󤫤éʸ»úÎó¤ò¼è¤ê½Ð¤½¤¦¤È¤·¤Æ¤¤¤Þ¤¹¡£ ¡Éaaa.bbb@test.cojp¡É ¤«¤é¡Ö@¡×¤è¤êÁ°¤È¸å¤ò¡¢ ¡Éaaa.bbb" ¤È ¡É@test.co.jp¡É ¤ò¼è¤ê½Ð¤·¤¿¤¤¤Î¤Ç¤¹¡£ ¤É¤Î¤è¤¦¤Ë¤¹¤ì¤ÐÎɤ¤¤«¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ |
>>4915 ¤Ù¤¿ ÊÑ¿ô $email ¤Ë¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬Æþ¤Ã¤Æ¤¤¤ë¤Ê¤é¡¢¤³¤ó¤Ê´¶¤¸¤Ç¤·¤ç¤¦¤«¡£ $ echo $email | sed 's/\(.*\)@.*/\1/' aaa $ echo $email | sed 's/.*\(@.*\)/\1/' @bbb.com |
Ìíå ïîíðàâèëñÿ òâîé ïîðòàë, êîíå÷íî æå ÿ åãî âíåñó ê ñåáå â çàêëàäêè è òåïåðü êàæäûé ðàç áóäó åãî ïîñåùàòü. Òâîé ïîðòàë äîñòîéííûé âíèìàíèÿ ñ íå òîëüêî ñ ÷àñòè êîíòåíòà, íî è ïðîñòî ñ âåñåëîãî îôîðìëåíèÿ. Ïðåäëàãàþ ïîñåòèòü <a href=http://www.find-business.ru>ìîé</a> ïîðòàë |
iconv¤Ë¤Ä¤¤¤Æ¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ Solaris8¤Ç¡¢iconv¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤¹¡£ º£¡¢»ÈÍѤ·¤Æ¤¤¤ë´Ä¶¤Ë¡¢iconv¥³¥Þ¥ó¥É¤¬£²¤ÄÆþ¤Ã¤Æ¤¤¤Þ¤¹¡£ £±¡¥/usr/local/bin/iconv £²¡¥/usr/bin/iconv £±¤È£²¤ÏÆüÉÕ¡¢¥µ¥¤¥º¤¬°Û¤Ê¤ê¡¢£±¤ÎÊý¤¬¡¢ÆüÉÕ¤¬¿·¤·¤¯¡¢¥µ¥¤¥º¤âÂ礤¤¤Ç¤¹¡£ ´Ä¶ÊÑ¿ô¤Î¥Ñ¥¹¤âξÊýÀßÄꤵ¤ì¤Æ¤¤¤Æ¡Öusr/local/bin¡×¤Î¥Ñ¥¹¤¬ À褢¤ë¤Î¤Ç¡¢which¥³¥Þ¥ó¥É¤ÇÄ´¤Ù¤ë¤È¡¢£±¤ÎÊý¤òɽ¼¨¤·¤Þ¤¹¡£ ¥·¥§¥ë¤«¤é¡¢iconv¤ò¼Â»Ü¤·¤¿¤¤¤Î¤Ç¤¹¤¬¡¢¤É¤Á¤é¤ÎÊý¤ò»È¤¨¤Ð ¤è¤¤¤Î¤Ç¤¹¤«¡£ iconv¤È¤·¤Æ¤É¤¦¤Á¤¬¤¦¤Î¤Ç¤·¤ç¤¦¤«¡£µ¡Ç½Åª¤Ë¤â°ã¤¦¤Î¤Ç¤·¤ç¤¦¤«¡£ £±¡¥/usr/local/bin/iconv ¤Î¾ì¹ç ¥³¥Þ¥ó¥É¤¬¥¨¥é¡¼¤È¤Ê¤Ã¤¿¾ì¹ç¡¢status¤Ë¡¢¡É0¡É¤«¡É1¡É¤¬Ê֤롣 # /usr/local/bin/iconv -f SJIS -t UTF8 sjis_file.txt > utf_file.txt iconv: conversion to UTF8 unsupported # echo $? 1 # £²¡¥/usr/bin/iconv ¤Î¾ì¹ç ¥³¥Þ¥ó¥É¤¬¥¨¥é¡¼¤È¤Ê¤Ã¤¿¾ì¹ç¡¢status¤¬¡¢¡É0¡É¤È¤Ê¤ë¡£ ¥¨¥é¡¼¤âɽ¼¨¤µ¤ì¤Ê¤¤¡£ # /usr/bin/iconv -f SJIS -t UTF8 contact_SJIS.txt > uft_file.txt # echo $? 0 # ¥·¥§¥ë¤«¤é¡¢iconv¤ò¼Â»Ü¤·¤¿¤¤¤Î¤Ç¤¹¤¬¡¢¤É¤Á¤é¤ÎÊý¤ò»È¤¨¤Ð ¤è¤¤¤Î¤Ç¤¹¤«¡£ iconv¤È¤·¤Æ¤É¤¦¤Á¤¬¤¦¤Î¤Ç¤·¤ç¤¦¤«¡£µ¡Ç½Åª¤Ë¤â°ã¤¦¤Î¤Ç¤·¤ç¤¦¤«¡£ ´Ä¶¤Ï Solaris8 sh(B¥·¥§¥ë) |
>4916 ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ expr index "${email}" @ ¤ä echo ${email} | awk '{ print substr($0,1,index($0,"@")-1)}' ¤ä ANS=`echo ${email} | awk '{printf "%s",index($0,"@")}'` ¡Ö@¡×¤¬ºÇ½é¤Ë¸½¤ì¤¿°ÌÃÖ¤ò¼èÆÀ¤·¤Æ¡¢cut ¤Ç¼è¤ê½Ð¤· echo ${email} | cut -c1-`expr ${ANS} - 1` echo ${email} | cut -c`expr ${ANS} + 1` awk¤ä¡¢£±²ó¤Ç¼è¤ê½Ð¤·¤¿¤«¤Ã¤¿¤Î¤Ç¡¢expr ¤Ç¤ä¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢ expr index ¤Î·Á¼°»È¤¨¤Ê¤¤¤Î¤Ç¡¢awk¤Ç¤ä¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢ sed¡¡¤ÇÃÖ´¹¤¹¤ëÊýË¡¤Ïµ¤¤¬ÉÕ¤¤Þ¤»¤ó¤Ç¤·¤¿¡£ ¤¿¤á¤·¤Æ¸«¤Þ¤¹¡£ |
>>4918 ¤Ù¤¿ /usr/local/bin/iconv ¤Ï GNU ¤Î libconv Ʊº¤Î iconv ¥³¥Þ¥ó¥É¡¢ /usr/bin/iconv ¤Ï Solaris ɸ½à¤Î iconv ¥³¥Þ¥ó¥É¤Ç¤Ï¤Ê¤¤¤«¤È »×¤¤¤Þ¤¹¡£ GNU ÈǤǤ¢¤ì¤Ð¡¢--version ¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤³¤È¤Ç % iconv --version iconv (GNU libc) 2.3.4 Copyright (C) 2005 Free Software Foundation, Inc. (ά) ¤È¤¤¤Ã¤¿É½¼¨¤¬ÆÀ¤é¤ì¤ë¤«¤È»×¤¤¤Þ¤¹¡£ °Ê²¼¤Ï Solaris ÈÇ¤È GNU ÈǤΰ㤤¤Ç¤¢¤Ã¤¿¤È¤·¤Æ¡¢¤È¤¤¤¦Á°Äó¤Ç¤¹¤¬¡¢ µ¡Ç½º¹¤ÇÁª¤Ö¤Ê¤é¢¤òÈæ³Ó (ÀΤΠSolaris ÈÇ iconv ¤Ï¡¢ÉÔÀµ¤Ê¥Ð¥¤¥ÈÎó¤¬ ¤¢¤Ã¤¿¾ì¹ç¨½ªÎ»¤À¤Ã¤¿µ¤¤¬¤¹¤ë¤Î¤Ç¤¹¤¬¡¢¸½ºß¤Ï¥¹¥¥Ã¥×¤È¤¤¤¦ÁªÂò»è¤â Áª¤Ù¤ë¤ó¤Ç¤¹¤«¤Í? ¤Ç¤¢¤ì¤Ð¤½¤ì¤Û¤Éµ¡Ç½º¹¤Ï¤Ê¤¤¤«¤â) http://docs.sun.com/app/docs/doc/819-1210/6n3j74jpk?a=view http://www.gnu.org/software/libiconv/documentation/libiconv/iconv.1.html ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤Î¿¤µ¤ÇÁª¤Ö¤Ê¤é¡¢/usr/local/bin/iconv -l ¤È /usr/lib/iconv/iconv_data ¤òÈæ³Ó¡£ÆÃ¤Ë CP932 ¤ä UTF-8 ¤Ê¤É¤¬Íí¤à ¾ì¹ç¤Ï¡¢¼ê»ý¤Á¤ÎÁ´¥Õ¥¡¥¤¥ë¤òÊÑ´¹¤·¤Æ·ë²Ì¤òÄ´¤Ù¤ë¤¯¤é¤¤¤Ï¤ä¤Ã¤¿ Êý¤¬¤è¤¤¤«¤È»×¤¤¤Þ¤¹¡£ ¸å¤Ï GNU ¤¬¹¥¤¤«¡¢Solaris ¤ÎÀ¤³¦¤Ç¸Ç¤á¤ë¤Î¤¬¹¥¤¤«¡¢¤Ç¤·¤ç¤¦¤«¡£ |
>>4919 ¤Ù¤¿ expr ¤ä cut ¤Ç¤â¤Ç¤¤Þ¤¹¤è¡£ (cut ¤Î¾ì¹ç¤Ï @ ¤¬ÉÕ¤¤Þ¤»¤ó¤¬¡£) $ expr $email : '\(.*\)@.*' $ expr $email : '.*\(@.*\)$' $ echo $email | cut -d '@' -f 1 $ echo $email | cut -d '@' -f 2 >>4918 ¤Ù¤¿ Solaris ¤Ë¤Ïɸ½à¤Ç /usr/local ¤È¤¤¤¦¥Ç¥£¥ì¥¯¥È¥ê¤¬¤Ê¤¤¤Î¤Ç¡¢ 68user ¤µ¤ó¤Î¶Ä¤ë¤È¤ª¤ê¤À¤È»×¤¤¤Þ¤¹¡£ |
>>4921 zsh ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ expr¤äcut¤Ç¤Î»È¤¤Êý¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ÊÙ¶¯¤Ë¤Ê¤ê¤Þ¤¹¡£ |
WindowsXP IE6.0 SP2 ¤ÎÊ̤ÎüËö¤«¤é½ñ¤¹þ¤ß¤ò ¤ª¤³¤Ê¤Ã¤¿¤é°Ê²¼¤Î¥¨¥é¡¼²èÌ̤¬É½¼¨¤µ¤ì¤Þ¤·¤¿¡£ ²¿¤«¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤Ê¤¤¤â¤Î¤¬¤¢¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£ ¥¨¥é¡¼ : ÆâÉô¥¨¥é¡¼¤¬µ¯¤³¤ê¤Þ¤·¤¿¡£ http://x68000.q-e-d.net/%7E68user/cgi-bin/wwwboard.cgi ¤Î¼Â¹Ô¤¬¤Ç¤¤Þ¤»¤ó¤Ç ¤·¤¿¡£ ¤ª¤½¤é¤¯CGI¥×¥í¥°¥é¥à¤ÎÉÔ¶ñ¹ç¤¬¸¶°ø¤Ç¤¹¡£ ¤â¤·¡¢¤³¤Á¤é¤Î¥Õ¥¡¥¤¥ëÀßÄê¥ß¥¹¡¦¥ê¥ó¥¯¥ß¥¹¡¦CGI ¤ÎÉÔ¶ñ¹ç¤Ê¤É¤¬¸¶°ø¤Ç¤¢¤Ã¤¿¾ì ¹ç¤ÏÁáµÞ¤Ë½¤Àµ¤·¤Þ¤¹¡£ ¤Î²èÌ̤¬É½¼¨¤µ¤ì¤Þ¤¹¡£ |
>>4918 ¤Ù¤¿ >>4921 zsh ÀâÌÀ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¤½¤ì¤Ç¤Ê¤Î¤Ç¤¹¤¬¡¢¥¹¥Æ¡¼¥¿¥¹¤¬Ê֤äƤ¯¤ë¤È¤¤¤¦¤³¤È¤Ç¡¢ ¡Ö/usr/local/bin/iconv¡×¤ò»È¤Ã¤Æ¤¤¤Þ¤¹¡£ B¥·¥§¥ë¤Ç¼Â¹Ô¤·¤Æ¤¤¤Þ¤¹¡£ iconv¥³¥Þ¥ó¥É¤ò¥Ñ¥¤¥×¤Ç¤Ä¤Ê¤¤¤Ç¡¢Ï¢Â³¤Ç¼Â¹Ô¤·¤Æ¤¤¤Þ¤¹¡£ /usr/local/bin/iconv -f SJIS -t UTF-8 file_sjis.txt | /usr/local/bin/iconv -f UTF-8 -t UTF-16 > file_utf.txt £±²óÌܤÎiconv¡Ê¥Ñ¥¤¥×¤Îº¸Â¦¤Îiconv¡Ë¤¬¥¨¥é¡¼¤È¤Ê¤Ã¤¿¤È¤¡¢ ¥¹¥Æ¡¼¥¿¥¹¤¬¥¨¥é¡¼¤ÇÊ֤äƤ¤Þ¤»¤ó¡£ ¥¨¥é¡¼¤òȽÃǤ·¤¿¤¤¤Î¤Ç¤¹¤¬¡¢¤É¤Î¤è¤¦¤Ë¤·¤¿¤é¥¨¥é¡¼¤ÈȽÃÇ ¤Ç¤¤ë¤Ç¤·¤ç¤¦¤«¡£ /usr/local/bin/iconv -f SJIS -t UTF8 file_sjis.txt | /usr/local/bin/iconv -f UTF-8 -t UTF-16 > file_utf.txt echo $? iconv: conversion to UTF8 unsupported 0 ¡É0¡É¤¬Êֵѡ£ /usr/local/bin/iconv -f SJIS -t UTF-8 file_sjis.txt | /usr/local/bin/iconv -f UTF-8 -t UTF16 > file_utf.txt echo $? iconv: conversion to UTF16 unsupported 1 ¡É1¡É¤¬Êֵѡ£ |
>>4923 ¤Ù¤¿ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ $ expr $email : '\(.*\)@.*' $ expr $email : '.*\(@.*\)$' $ echo $email | cut -d '@' -f 1 $ echo $email | cut -d '@' -f 2 ¤É¤ì¤Ç¤â¡¢¼è¤ê½Ð¤»¤Þ¤·¤¿¡£ |
>>4925 ¤Ù¤¿ > £±²óÌܤÎiconv¡Ê¥Ñ¥¤¥×¤Îº¸Â¦¤Îiconv¡Ë¤¬¥¨¥é¡¼¤È¤Ê¤Ã¤¿¤È¤¡¢ > ¥¹¥Æ¡¼¥¿¥¹¤¬¥¨¥é¡¼¤ÇÊ֤äƤ¤Þ¤»¤ó¡£ > ¥¨¥é¡¼¤òȽÃǤ·¤¿¤¤¤Î¤Ç¤¹¤¬¡¢¤É¤Î¤è¤¦¤Ë¤·¤¿¤é¥¨¥é¡¼¤ÈȽÃÇ > ¤Ç¤¤ë¤Ç¤·¤ç¤¦¤«¡£ bash ¤Ê¤é PIPESTATUS ¤ò»È¤¨¤Ð¤è¤¤¤Ç¤¹¤¬¡¢sh ¤Ç¤¢¤ì¤Ð ½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤Ï¼èÆÀ¤Ç¤¤Ê¤¤¤È»×¤¤¤Þ¤¹¡£¤·¤ç¤Ü¤¤¤Ç¤¹¤¬¡¢ ¥Ñ¥¤¥×¤ò»È¤¦¤Î¤ò¤ä¤á¤ë¤Î¤¬¤è¤¤¤«¤È»×¤¤¤Þ¤¹¡£ >>4924 ¤Ù¤¿ > WindowsXP IE6.0 SP2 ¤ÎÊ̤ÎüËö¤«¤é½ñ¤¹þ¤ß¤ò > ¤ª¤³¤Ê¤Ã¤¿¤é°Ê²¼¤Î¥¨¥é¡¼²èÌ̤¬É½¼¨¤µ¤ì¤Þ¤·¤¿¡£ IP ¥¢¥É¥ì¥¹¤äȯ¸ÀÆâÍƤʤɤ«¤é SPAM ¤ÈȽÄꤵ¤ì¤¿¤Î¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ÆäËȽÄêÀºÅ٤ι⤤¤â¤Î¤Ç¤Ï¤Ê¤¤¤Î¤Ç¡¢ÉÑȯ¤¹¤ë¤è¤¦¤Ê¤é¤´Ï¢Íí¤¯¤À¤µ¤¤¡£ |
>>4927 68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ sh ¤Ç¤¤Ê¤¤¤ó¤Ç¤¹¤Í¡£ ½ÐÎÏ·ë²Ì¤¬¤Ê¤±¤ì¤Ð¡¢½ÐÎÏ·ë²Ì¤ò¥Ñ¥¤¥×¤ÇÅϤµ¤Ê¤±¤ì¤Ð ¡Ö&&¡×¤Ç¤¤¤±¤ë¤Î¤Ç¤Ê¤¤¤«¤Èʤ¤¤¤Þ¤¹¤¬¡£ ¥Ñ¥¤¥×¤ò»È¤ï¤º¸Ä¡¹¤Ë¹Ô¤¤¤Þ¤¹¡£ |
Solaris8 ¤Ê¤Î¤Ç¤¹¤¬¡¢¡Ö/var/log/syslog¡×¤Ë¡¢ TCP¥³¥Í¥¯¥·¥ç¥ó¤Î¥í¥°¤ò½ÐÎϤµ¤»¤¿¤¤¤Î¤Ç¤¹¡£ telnet¡¢ftp¤Ê¤É¡¢Àܳ¤·¤¿¥í¥°¤ò½ÐÎϤ·¤¿¤¤¤Î ¤Ç¤¹¡£ ¤É¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£ ¡Ö/etc/syslog.conf¡×¤Ë¤Ï¡¢°Ê²¼¤ÎÍͤʵ½Ò¤ò¤·¤Æ¤¤¤Þ¤¹¡£ user.notice /var/log/syslog syslog¤Î¥Ç¡¼¥â¥ó¤âºÆµ¯Æ°¤·¤¿¤Î¤Ç¤¹¤¬¡¢½ÐÎϤµ¤ì¤Þ¤»¤ó¡£ |
>>4829 68user ftp¤Î¥í¥°¤ò¼èÆÀ¤¹¤ëAIX¤Î¾ì¹ç¤ÎÎã¤Ç¤¹¡£ #vi /etc/inetd.conf ¡Êftp¤Î¥¨¥ó¥È¥ê¡¼¤ÇºÇ¸å¤Ë¡Ö-l¡×¤Þ¤¿¤Ï¡Ö-d¡×¥ª¥×¥·¥ç¥ó¤òÄÉ²Ã¡Ë ftp .... /usr/sbin/ftpd ftpd -l ¤Þ¤¿¤Ï¡¡ftpd -d (žÁ÷¥Õ¥¡¥¤¥ë̾¤ò³Îǧ¤¹¤ë¤À¤±¤Ç¤¢¤ì¤Ð -l ¥ª¥×¥·¥ç¥ó¤ÎÊý¤¬¥í¥°¤¬¾¯¤Ê¤¯¤ÆºÑ¤ß¤Þ¤¹) #refresh -s inetd ¡Êinetd¥Ç¡¼¥â¥ó¤ò¥ê¥Õ¥ì¥Ã¥·¥å¡Ë #vi /etc/syslog.conf ¡ÊsyslogÀßÄê¥Õ¥¡¥¤¥ë¤Ëftp¤Î¥í¥°¤ò¼èÆÀ¤¹¤ë¤¿¤á¤Î¥¨¥ó¥È¥ê¤òÄÉ²Ã¡Ë daemon.info /tmp/ftpd.log (daemon.debug¤Ç¤¢¤ì¤Ð¤â¤¦¾¯¤·¾Ü¤·¤¤¾ÜºÙ¤¬³Îǧ¤Ç¤¤Þ¤¹) #touch /tmp/ftpd.log ¡Ê¥í¥°¥Õ¥¡¥¤¥ë¤òºîÀ®¡Ë #refresh -s syslogd ¡Êsyslog¥Ç¡¼¥â¥ó¤òºÆµ¯Æ°¡Ë |
>>4931 ¥Ð¥ó¥¬¡¼¥É ¤´¤á¤ó¤Ê¤µ¤¤¡£ 4929¤Ø¤Î¥³¥á¥ó¥È¤Ç¤·¤¿¡£ |
>>4932 ¥Ð¥ó¥¬¡¼¥É ¤ªÎ餬Ã٤쿽¤·Ìõ¤¢¤ê¤Þ¤»¤ó¡£ ¤´ÀâÌÀ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¤É¤Á¤é¤Ë¤·¤Æ¤â¥Ç¡¼¥â¥ó¤ÎºÆµ¯Æ°¡Ê¥ê¥Õ¥ì¥Ã¥·¥å¡Ë¤¬ ɬÍפʤó¤Ç¤¹¤Í¡£ |
Solaris8 ¤Ê¤Î¤Ç¤¹¤¬¡¢¥·¥§¥ë¤ò¼Â¹Ô¤¹¤ëºÝ¡¢ ./¥·¥§¥ë̾¤È¤·¤Ê¤¤¤Èµ¯Æ°¤Ç¤¤Þ¤»¤ó¡£ ¡Ö./¡×¤Çµ¯Æ°¤¹¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤é¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£ ¡Ö./¡×¤Çµ¯Æ°¤Ç¤¤ë¥¢¥«¥¦¥ó¥È¤¬¤¢¤ë¤Î¤Ç¡¢°ã¤¤¤òÈæ¤Ù¤Æ¤ß¤ë¤È PATH¤ÎÊÑ¿ô¤¬°Û¤Ê¤Ã¤Æ¤¤¤Þ¤·¤¿¡£ PATH=./:/usr/bin¡¦¡¦¡¦¡¦¡¦ ¤È¤« PATH=¡¦¡¦¡¦¡¦/usr/bin: PATHÊÑ¿ô¤ÎÃæ¤Ë¡¢¡Ö./¡×¤ÎÀßÄ꤬¤¢¤ë¡£ PATHÊÑ¿ô¤¬¡Ö¡§¡×¤Ç½ª¤ï¤Ã¤Æ¤¤¤ë¡£ ¡Ö./¡×¤ò»ØÄꤷ¤Ê¤¤¤ÈÆ°¤«¤Ê¤¤¥¢¥«¥¦¥ó¥È¤Ï¡¢Î¾Êý¤¬¤Ê¤¤¾õ¶·¤È ¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ ¤É¤Î¤è¤¦¤Ë´Ä¶ÊÑ¿ô¤òÀßÄꤹ¤ì¤Ð¤è¤¤¤Î¤Ç¤¹¤«¡£ |
>>4934 ¤Ù¤¿ > ¡Ö./¡×¤Çµ¯Æ°¤¹¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤é¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£ ¡Ö./¡×¤Ê¤·¤Çµ¯Æ°¤·¤¿¤¤¤È¤¤¤¦¤³¤È¤Ç¤·¤ç¤¦¤«¡© PATH ´Ä¶ÊÑ¿ô¤Ë ./ ¤ò´Þ¤á¤ì¤Ð²Äǽ¤Ç¤¹¤¬¡¢¤ª´«¤á¤Ï¤·¤Þ¤»¤ó¡£ ÆÃÄê¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥¹¥¯¥ê¥×¥È¤ò½¸¤á¤Æ¡¢¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò PATH ´Ä¶ÊÑ¿ô¤Ë´Þ¤á¤ëÊý¤¬¤è¤¤¤È»×¤¤¤Þ¤¹¡£ ¤Ê¤ª¡¢Æ±¤¸Ì¾Á°¤Î¥³¥Þ¥ó¥É¡Ê¥¹¥¯¥ê¥×¥È¡Ë¤¬Ê£¿ô¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë ¸ºß¤¹¤ë¾ì¹ç¤Ï¡¢PATH ´Ä¶ÊÑ¿ô¤ÇÀè¤Ë¸«¤Ä¤«¤Ã¤¿¥³¥Þ¥ó¥É ¡Êº¸Â¦¤Î¥Ñ¥¹¤«¤é½çÈÖ¤Ëõ¤·¤Ë¹Ô¤¤Þ¤¹¡Ë¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£ |
>>4934 ¤Ù¤¿ PATH ¤Ë . ¤ò´Þ¤á¤Ê¤¤Íýͳ¤Ï°Ê²¼¤Î¤È¤ª¤ê¡£ ¡¦¥»¥¥å¥ê¥Æ¥£¥Û¡¼¥ë¤È¤Ê¤ë¡£PATH=.:/bin:/usr/bin:/usr/local/bin ¤È¤Ê¤Ã¤Æ¤¤¤Æ¡¢ cd ~foo; ls ¤È¤·¤¿¤È¤¤Ë /home/foo/ls ¤¬Â¸ºß¤·¤¿¤é¡¢¤½¤Î¥×¥í¥°¥é¥à¤ò¼Â¹Ô ¤·¤Æ¤·¤Þ¤¦¡£cd /tmp; ls ¤âƱÍÍ¡£¤½¤Î¥×¥í¥°¥é¥à¤¬¤É¤ó¤Ê°¤µ¤ò¤¹¤ë¤«¤Ï¤ï¤«¤é¤Ê¤¤¡£ ¡¦PATH ¤Ë . ¤ò²Ã¤¨¤ë¤È¡¢¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤è¤Ã¤Æ¼Â¹Ô¤µ¤ì¤ë¥³¥Þ¥ó¥É¤¬°Û¤Ê¤ë ²ÄǽÀ¤¬¤¢¤ë¤¿¤á¡¢ÀâÌÀ¤¬¤á¤ó¤É¤¯¤µ¤¤¤·¡¢¤Ï¤Þ¤ê¤ä¤¹¤¯¤Ê¤ë¡£Î㤨¤Ð /bin ¤È /usr/bin ¤ËƱ̾¤Î¥³¥Þ¥ó¥É¤¬¤¢¤ë¤È¤·¤Æ¡¢¥³¥Þ¥ó¥É foo ¤ò¥¿¥¤¥×¤·¤¿¤È¤¤Ë¡¢ - ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤¬ /usr/bin ¤Î¾ì¹ç¤Ï /usr/bin/foo ¤¬¼Â¹Ô¤µ¤ì¤ë - ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤¬ /usr/bin °Ê³°¤Î¾ì¹ç¤Ï /bin/foo ¤¬¼Â¹Ô¤µ¤ì¤ë ¤È¤¤¤¦¤Î¤Ï¤ï¤«¤ê¤Å¤é¤¤¡£ ¡¦csh¡¦tcsh¡¦bash¡¦zsh ¤Ê¤É¡¢º£¤É¤¤Ê¥·¥§¥ë¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ ./ ¤«¤é¥¿¥¤¥×¤·¤¿Êý¤¬¥Õ¥¡¥¤¥ë̾Êä´°¤ò»È¤¨¤ë¤¿¤á¡¢ÆþÎϤ¬Â®¤¤¡£ |