<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="ja" xmlns="http://www.w3.org/2005/Atom">
  <title>code&#12394;&#12395;&#12364;&#12375;: ponsuke&#12364;&#25237;&#31295;&#12375;&#12383;&#12477;&#12540;&#12473;&#12467;&#12540;&#12489;&#12539;&#12494;&#12454;&#12495;&#12454;&#12483;&#65281;&#12398;&#19968;&#35239;</title>
  <link type="text/html" rel="alternate" href="http://code.nanigac.com/source"/>
  <link rel="icon" href="/favicon.ico"/>
  <updated>2008-08-19T21:49:13+09:00</updated>
  <id>tag:code.nanigac.com:user_sources</id>
  <entry>
    <title>urllib &#12434;&#29992;&#12356;&#12383;&#31777;&#21336;&#12394;&#12487;&#12540;&#12479;&#21462;&#24471;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/608"/>
    <id>tag:code.nanigac.com:user_sources,608</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-08-19T21:49:13+09:00</updated>
    <summary>&#12458;&#12521;&#12452;&#12522;&#12451;&#12363;&#12425;&#20986;&#12390;&#12356;&#12427; SPIDERING HACKS &#12434; Python &#12391;
&#26360;&#12365;&#30452;&#12375;&#12390;&#35211;&#12427;&#12290;

&#65297;&#22238;&#30446;&#12399;&#12289;
&#12300;SPIDERING HACKS Hack09 LWP::Simple&#12434;&#29992;&#12356;&#12390;&#31777;&#21336;&#12394;&#12487;&#12540;&#12479;&#21462;&#24471;&#12301;
&#12434;&#21442;&#32771;&#12395;&#26360;&#12356;&#12390;&#12415;&#12383;&#12290;

Perl &#12398; LWP::Simple&#12398;&#27096;&#12395;WWW&#12434;&#20171;&#12375;&#12390;Web&#12363;&#12425;&#12487;&#12540;&#12479;&#12434;&#21462;&#24471;&#12377;&#12427;
&#12514;&#12472;&#12517;&#12540;&#12523;&#12364;Python&#12395;&#12418;&#29992;&#24847;&#12373;&#12428;&#12390;&#12356;&#12427;&#12290;

&#12381;&#12428;&#12364;&#12289;urllib&#12514;&#12472;&#12517;&#12540;&#12523;&#12290;

&#25552;&#31034;&#12375;&#12383;&#12477;&#12540;&#12473;&#12467;&#12540;&#12489;&#12391;&#12399;&#12289;urllib&#12514;&#12472;&#12517;&#12540;&#12523;&#12434;&#29992;&#12356;&#12390;&#12289;
&#22806;&#21209;&#30465;&#28023;&#22806;&#23433;&#20840;&#12507;&#12540;&#12512;&#12506;&#12540;&#12472;&#12395;&#12450;&#12463;&#12475;&#12473;&#12375;&#12390;&#12289;&#25351;&#23450;&#12375;&#12383;&#22269;&#12398;
&#21361;&#38522;&#24773;&#22577;&#12434;&#21462;&#24471;&#12375;&#12390;&#12367;&#12427;&#12418;&#12398;&#12384;&#12290;

&#22269;&#12398;&#25351;&#23450;&#12399;&#12289;&#25968;&#20516;&#12434;&#24341;&#25968;&#12392;&#12375;&#12390;&#12503;&#12525;&#12464;&#12521;&#12512;&#12395;&#28193;&#12377;&#12290;
&#24341;&#25968;&#12364;&#12394;&#12356;&#22580;&#21512;&#12399;&#12289;074&#12364;&#20351;&#29992;&#12373;&#12428;&#12427;&#12290;
074&#12399;&#12289;&#12491;&#12517;&#12540;&#12472;&#12540;&#12521;&#12531;&#12489;&#12434;&#31034;&#12377;ID&#12384;&#12290;

&#32080;&#26524;&#12399;&#12289;&#20197;&#19979;&#12398;&#12424;&#12358;&#12395;&#34920;&#31034;&#12373;&#12428;&#12427;&#12290;

 &#12491;&#12517;&#12540;&#12472;&#12540;&#12521;&#12531;&#12489;
&#21361;&#38522;&#24773;&#22577;&#12399;&#20986;&#12390;&#12356;&#12414;&#12379;&#12435;&#12290;
&#35443;&#32048;&#12399; http://www.anzen.mofa.go.jp/ &#12434;&#35211;&#12390;&#12367;&#12384;&#12373;&#12356;
 </summary>
  </entry>
  <entry>
    <title>fork&#12391;&#12469;&#12540;&#12496;&#12434;&#20998;&#38626;&#12377;&#12427;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/587"/>
    <id>tag:code.nanigac.com:user_sources,587</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-07-18T00:19:39+09:00</updated>
    <summary>&#12463;&#12521;&#12452;&#12450;&#12531;&#12488;&#12363;&#12425;&#25509;&#32154;&#12364;&#12354;&#12427;&#24230;&#12395;&#12289;&#23376;&#12503;&#12525;&#12475;&#12473;&#12434;&#29983;&#25104;&#12375;&#12390;
&#20966;&#29702;&#12434;&#34892;&#12358;&#12469;&#12540;&#12496;
</summary>
  </entry>
  <entry>
    <title>Python&#12391;&#32076;&#36942;&#26085;&#25968;&#12434;&#27714;&#12417;&#12427;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/585"/>
    <id>tag:code.nanigac.com:user_sources,585</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-07-15T13:18:04+09:00</updated>
    <summary>&#12300;JavaScript&#12391;&#32076;&#36942;&#26085;&#25968;&#12434;&#27714;&#12417;&#12427;&#12301;&#12434;Python&#12391;&#12290;
&#12418;&#12387;&#12392;&#33391;&#12356;&#26041;&#27861;&#12364;&#12354;&#12426;&#12381;&#12358;&#12384;&#12369;&#12393;&#12289;&#12392;&#12426;&#12354;&#12360;&#12378;&#12450;&#12483;&#12503;&#12290;

</summary>
  </entry>
  <entry>
    <title>Python&#12391;fork&#12434;&#29992;&#12356;&#12390;&#12503;&#12525;&#12475;&#12473;&#12434;&#29983;&#25104;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/578"/>
    <id>tag:code.nanigac.com:user_sources,578</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-07-11T00:40:36+09:00</updated>
    <summary>os&#12514;&#12472;&#12517;&#12540;&#12523;&#12395;&#21547;&#12414;&#12428;&#12390;&#12356;&#12427;fork()&#38306;&#25968;&#12434;&#29992;&#12356;&#12390;&#12289;
&#12503;&#12525;&#12475;&#12473;&#12434;&#29983;&#25104;&#12434;&#34892;&#12358;&#12290;

fork()&#38306;&#25968;&#12399;&#36820;&#12426;&#20516;&#12392;&#12375;&#12390;&#12289;&#12503;&#12525;&#12475;&#12473;ID&#12434;&#36820;&#12377;&#12290;

&#12371;&#12398;&#26178;&#12289;&#23376;&#12503;&#12525;&#12475;&#12473;&#12398;&#22580;&#21512;&#12399;&#65296;&#12364;&#36820;&#12426;&#12289;
&#35242;&#12503;&#12525;&#12475;&#12473;&#12398;&#22580;&#21512;&#12399;&#12289;&#23376;&#12503;&#12525;&#12475;&#12473;&#12398;ID&#12364;&#24112;&#12427;&#12290;

&#19979;&#35352;&#12398;&#12503;&#12525;&#12464;&#12521;&#12512;&#12391;&#12399;&#12289;wait()&#38306;&#25968;&#12434;&#29992;&#12356;&#12427;&#20107;&#12391;&#12289;
&#23376;&#12503;&#12525;&#12475;&#12473;&#12398;&#20966;&#29702;&#12364;&#32066;&#20102;&#12377;&#12427;&#12414;&#12391;&#12289;&#35242;&#12503;&#12525;&#12475;&#12473;&#12399;&#20966;&#29702;&#12434;&#23455;&#34892;&#12375;&#12394;&#12356;
&#12424;&#12358;&#12395;&#12375;&#12390;&#12356;&#12427;&#12290;

wait()&#12364;&#12394;&#12369;&#12428;&#12400;&#12289;&#23376;&#12503;&#12525;&#12475;&#12473;&#12398;&#20966;&#29702;&#12398;&#32066;&#20102;&#12434;&#24453;&#12383;&#12378;&#12395;&#12289;
&#35242;&#12503;&#12525;&#12475;&#12473;&#12418;&#20966;&#29702;&#12434;&#23455;&#26045;&#12375;&#12390;&#12375;&#12414;&#12358;&#12290;
</summary>
  </entry>
  <entry>
    <title>&#33258;&#20998;&#33258;&#36523;&#12398;&#21517;&#21069;&#12392;&#12450;&#12489;&#12524;&#12473;&#12434;&#21462;&#24471;&#12377;&#12427;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/576"/>
    <id>tag:code.nanigac.com:user_sources,576</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-07-08T23:34:30+09:00</updated>
    <summary>&#33258;PC&#12398;&#21517;&#21069;&#12392;&#12450;&#12489;&#12524;&#12473;&#12434;&#21462;&#24471;&#12375;&#12383;&#12290;
&#12371;&#12398;&#22580;&#21512;&#12289;socket&#12514;&#12472;&#12517;&#12540;&#12523;&#12398;
gethostbyaddr()&#38306;&#25968;&#12392;gethostname()&#38306;&#25968;&#12434;
&#20351;&#29992;&#12377;&#12427;

</summary>
  </entry>
  <entry>
    <title>&#12469;&#12540;&#12496;&#12395;&#25509;&#32154;&#12373;&#12428;&#12383;&#12522;&#12514;&#12540;&#12488;PC&#12398;&#12450;&#12489;&#12524;&#12473;&#12434;&#21462;&#24471;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/573"/>
    <id>tag:code.nanigac.com:user_sources,573</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-07-08T00:51:46+09:00</updated>
    <summary>getpeername()&#12513;&#12477;&#12483;&#12489;&#12434;&#29992;&#12356;&#12390;&#12289;&#12469;&#12540;&#12496;&#12395;&#25509;&#32154;&#12373;&#12428;&#12390;&#12356;&#12427;
PC&#12398;&#12450;&#12489;&#12524;&#12473;&#12434;&#21462;&#24471;&#12375;&#12390;&#12415;&#12383;&#12290;
</summary>
  </entry>
  <entry>
    <title>Unix&#12489;&#12513;&#12452;&#12531;&#12477;&#12465;&#12483;&#12488;&#12434;&#20351;&#29992;&#12377;&#12427;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/566"/>
    <id>tag:code.nanigac.com:user_sources,566</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-07-02T23:00:34+09:00</updated>
    <summary>TCP,UDP&#12398;&#22580;&#21512;&#12399;&#12289;&#12477;&#12465;&#12483;&#12488;&#12395;bind&#12377;&#12427;&#12398;&#12399;&#12289;IP&#12450;&#12489;&#12524;&#12473;&#12392;&#12509;&#12540;&#12488;&#12384;&#12387;&#12383;&#12364;&#12289;
Unix&#12489;&#12513;&#12452;&#12531;&#12398;&#22580;&#21512;&#12399;&#12289;&#12501;&#12449;&#12452;&#12523;&#12434;&#25351;&#23450;&#12377;&#12427;&#12290;
</summary>
  </entry>
  <entry>
    <title>UPD&#12463;&#12521;&#12452;&#12450;&#12531;&#12488;&#12434;&#26360;&#12367;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/564"/>
    <id>tag:code.nanigac.com:user_sources,564</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-07-01T11:36:38+09:00</updated>
    <summary>UPD&#12463;&#12521;&#12452;&#12450;&#12531;&#12488;&#12434;&#26360;&#12356;&#12390;&#12415;&#12383;&#12290;
</summary>
  </entry>
  <entry>
    <title>UDP&#12469;&#12540;&#12496;&#12434;&#26360;&#12367;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/563"/>
    <id>tag:code.nanigac.com:user_sources,563</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-07-01T11:35:05+09:00</updated>
    <summary>UDP&#12469;&#12540;&#12496;&#12434;&#26360;&#12356;&#12390;&#12415;&#12383;&#12290;
</summary>
  </entry>
  <entry>
    <title>TCP&#12463;&#12521;&#12452;&#12450;&#12531;&#12488;&#12434;&#26360;&#12367;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/548"/>
    <id>tag:code.nanigac.com:user_sources,548</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-06-21T23:38:47+09:00</updated>
    <summary>&#21069;&#12293;&#22238;&#12289;&#21069;&#22238;&#12391;&#20316;&#25104;&#12375;&#12383;&#12469;&#12540;&#12496;&#12395;&#25509;&#32154;&#12377;&#12427;&#12383;&#12417;&#12398;&#12463;&#12521;&#12452;&#12450;&#12531;&#12488;&#12434;&#20316;&#25104;&#12290;
</summary>
  </entry>
  <entry>
    <title>TCP&#12469;&#12540;&#12496;&#12434;&#26360;&#12367;&#65298;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/547"/>
    <id>tag:code.nanigac.com:user_sources,547</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-06-21T23:34:56+09:00</updated>
    <summary>&#21069;&#22238;&#12395;&#32154;&#12365;&#12289;TCP&#12469;&#12540;&#12496;&#12434;&#26360;&#12356;&#12390;&#12415;&#12383;&#12290;

&#20170;&#22238;&#12399;&#12289;SocketServer&#12392;&#12356;&#12358;&#12469;&#12540;&#12496;&#12434;&#26360;&#12367;&#28858;&#12398;&#20415;&#21033;&#12394;&#12514;&#12472;&#12517;&#12540;&#12523;&#12434;
&#20351;&#12387;&#12390;&#20316;&#25104;&#12290;
</summary>
  </entry>
  <entry>
    <title>TCP&#12469;&#12540;&#12496;&#12434;&#26360;&#12367;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/543"/>
    <id>tag:code.nanigac.com:user_sources,543</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-06-22T00:29:34+09:00</updated>
    <summary>&#21021;&#12417;&#12390;&#12289;&#12477;&#12465;&#12483;&#12488;&#12434;&#29992;&#12356;&#12390;&#12398;&#12493;&#12483;&#12488;&#12527;&#12540;&#12463;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#26360;&#12356;&#12383;&#12290;
&#20170;&#24460;&#12289;&#12385;&#12419;&#12435;&#12392;&#21193;&#24375;&#12375;&#12390;&#34892;&#12365;&#12383;&#12356;&#12290;


&#20197;&#19979;&#12398;&#12503;&#12525;&#12464;&#12521;&#12512;&#12364;&#12289;&#12377;&#12409;&#12390;&#12398;&#12493;&#12483;&#12488;&#12527;&#12540;&#12463;&#12503;&#12525;&#12464;&#12521;&#12512;&#12398;&#22522;&#30990;&#12395;&#12394;&#12427;&#12398;&#12384;&#12429;&#12358;&#12290;

&#12469;&#12540;&#12496;&#12399;&#12289;&#27425;&#12398;&#12424;&#12358;&#12394;&#20966;&#29702;&#12398;&#27969;&#12428;&#12395;&#12394;&#12427;&#12290;
 &#65297;&#65294;&#22806;&#37096;&#12392;&#12398;&#36963;&#12426;&#21462;&#12426;&#12434;&#34892;&#12358;&#28858;&#12398;&#12477;&#12465;&#12483;&#12488;&#12434;&#20316;&#25104;&#12377;&#12427;&#12290;

&#65298;&#65294;&#12477;&#12465;&#12483;&#12488;&#12392;IP&#12450;&#12489;&#12524;&#12473;&#12434;&#38306;&#36899;&#12389;&#12369;&#12427;&#12290;

&#65299;&#65294;&#12463;&#12521;&#12452;&#12450;&#12531;&#12488;&#12392;&#12398;&#25509;&#32154;&#12434;&#28310;&#20633;&#12377;&#12427;&#12290;

&#65300;&#65294;&#23455;&#38555;&#12395;&#12463;&#12521;&#12452;&#12450;&#12531;&#12488;&#12392;&#12398;&#25509;&#32154;&#12434;&#38283;&#22987;&#12377;&#12427;&#12290;
 </summary>
  </entry>
  <entry>
    <title>&#21029;&#12398;&#12503;&#12525;&#12464;&#12521;&#12512;&#12392;&#35501;&#12415;&#26360;&#12365;&#12377;&#12427;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/531"/>
    <id>tag:code.nanigac.com:user_sources,531</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-06-15T23:28:08+09:00</updated>
    <summary>
&#65298;&#12388;&#12398;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#23455;&#34892;&#12375;&#12383;&#12356;&#12290;

&#12371;&#12398;&#26178;&#12289;&#65297;&#12388;&#30446;&#12398;&#23455;&#34892;&#12373;&#12428;&#12383;&#12503;&#12525;&#12464;&#12521;&#12512;&#12398;&#32080;&#26524;&#12434;&#27161;&#28310;&#20986;&#21147;&#12395;&#20986;&#21147;&#12375;&#12289;
&#65298;&#12388;&#30446;&#12398;&#12503;&#12525;&#12464;&#12521;&#12512;&#12364;&#12289;&#12371;&#12428;&#12434;&#27161;&#28310;&#20837;&#21147;&#12392;&#12375;&#12390;&#21463;&#12369;&#21462;&#12427;&#12424;&#12358;&#12395;&#12377;&#12427;&#12290;

&#20170;&#22238;&#12398;&#12503;&#12525;&#12464;&#12521;&#12512;&#12399;&#12289;&#20197;&#19979;&#12398;&#12471;&#12455;&#12523;&#12467;&#12510;&#12531;&#12489;&#12392;&#31561;&#20385;&#12391;&#12354;&#12427;&#12290;

 $ ls | grep test
 &#12371;&#12428;&#12399;&#12289;ls &#12398;&#32080;&#26524;&#12363;&#12425;&#12289; test &#12434;&#21547;&#12416;&#12418;&#12398;&#12384;&#12369;&#12434;&#34920;&#31034;&#12377;&#12427;&#12418;&#12398;&#12391;&#12354;&#12427;&#12290;

&#32080;&#26524;&#12434;&#20197;&#19979;&#12395;&#31034;&#12377;&#12290;
 #test_hlink#
recip719_test
test
test.py~
test_slink
 </summary>
  </entry>
  <entry>
    <title>&#29694;&#22312;&#12398;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#21029;&#12398;&#12503;&#12525;&#12464;&#12521;&#12512;&#12395;&#32622;&#12365;&#25563;&#12360;&#12427;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/530"/>
    <id>tag:code.nanigac.com:user_sources,530</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-06-15T01:01:01+09:00</updated>
    <summary>&#12371;&#12428;&#12414;&#12391;&#12289;&#65298;&#22238;&#22806;&#37096;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#23455;&#34892;&#12377;&#12427;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#32057;&#20171;&#12375;&#12414;&#12375;&#12383;&#12290;

&#12381;&#12398;&#12393;&#12385;&#12425;&#12392;&#12418;&#12289;&#23376;&#12503;&#12525;&#12475;&#12473;&#12391;&#22806;&#37096;&#12503;&#12525;&#12464;&#12521;&#12512;&#12364;&#32066;&#20102;&#12375;&#12383;&#12398;&#12385;&#12289;
&#35242;&#12503;&#12525;&#12475;&#12473;&#12395;&#21046;&#24481;&#12434;&#25147;&#12427;&#12424;&#12358;&#12394;&#20181;&#32068;&#12415;&#12395;&#12394;&#12387;&#12390;&#12356;&#12414;&#12375;&#12383;&#12290;

&#20170;&#22238;&#12398; os.exec* &#12399;&#12289;&#12371;&#12428;&#12414;&#12391;&#12392;&#36949;&#12356;&#12289;&#29694;&#22312;&#12398;&#12503;&#12525;&#12464;&#12521;&#12512;&#12364;&#12289;
&#22806;&#37096;&#12503;&#12525;&#12464;&#12521;&#12512;&#12395;&#20837;&#12428;&#26367;&#12431;&#12426;&#12289;&#20803;&#12395;&#20966;&#29702;&#12395;&#12399;&#25147;&#12425;&#12378;&#12395;&#32066;&#20102;&#12375;&#12414;&#12377;&#12290;

&#12381;&#12398;&#28858;&#12289;os.exec* &#12398;&#12354;&#12392;&#12395;&#26360;&#12363;&#12428;&#12390;&#12356;&#12427; print 'end' &#12399;
&#23455;&#34892;&#12373;&#12428;&#12414;&#12379;&#12435;&#12290;

</summary>
  </entry>
  <entry>
    <title>Python&#12391;&#22806;&#37096;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#23455;&#34892;&#12377;&#12427;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/525"/>
    <id>tag:code.nanigac.com:user_sources,525</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-06-10T01:49:27+09:00</updated>
    <summary>&#21069;&#12293;&#22238;&#65288;&#65311;&#65289;&#12289;Python&#12398;&#27161;&#28310;&#12521;&#12452;&#12502;&#12521;&#12522;&#12395;&#12354;&#12427; subprocess &#12514;&#12472;&#12517;&#12540;&#12523;&#12398;
Popen&#12463;&#12521;&#12473;&#12434;&#29992;&#12356;&#12390;&#12289;&#22806;&#37096;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#23455;&#34892;&#12375;&#12289;&#12381;&#12398;&#32080;&#26524;&#12434;&#27161;&#28310;&#20986;&#21147;&#32076;&#30001;&#12391;
&#21462;&#24471;&#12375;&#12383;&#12290;

&#20170;&#22238;&#12399;&#12289;subprocess&#12514;&#12472;&#12517;&#12540;&#12523;&#12395;&#23450;&#32681;&#12373;&#12428;&#12390;&#12356;&#12427; call &#38306;&#25968;&#12434;&#21628;&#12403;&#20986;&#12375;&#12390;&#12289;
&#22806;&#37096;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#23455;&#34892;&#12377;&#12427;&#12290;

call&#38306;&#25968;&#12399;&#12289;&#25351;&#23450;&#12373;&#12428;&#12383;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#23376;&#12503;&#12525;&#12475;&#12473;&#12391;&#23455;&#34892;&#12375;&#12289;&#32066;&#20102;&#12414;&#12391;&#24453;&#12385;
&#23455;&#34892;&#32080;&#26524;&#12392;&#12375;&#12390;&#21462;&#24471;&#12377;&#12427;&#12398;&#12364;&#12289;&#22806;&#37096;&#12503;&#12525;&#12464;&#12521;&#12512;&#12398;&#20986;&#21147;&#12375;&#12383;&#32080;&#26524;&#12391;&#12399;&#12394;&#12367;&#12289;
&#23455;&#34892;&#32080;&#26524;&#12434;&#34920;&#12377;&#25972;&#25968;&#20516;&#12391;&#12354;&#12427;&#12371;&#12392;&#12290;

call&#38306;&#25968;&#12398;&#23455;&#35013;&#33258;&#20307;&#12399;&#12289;&#21336;&#12395;Popen&#12463;&#12521;&#12473;&#12395;&#24341;&#25968;&#12434;&#28193;&#12375;&#12390;&#12356;&#12427;&#31243;&#24230;&#12290;

Python2.4&#12391;&#36861;&#21152;&#12373;&#12428;&#12383;&#12514;&#12472;&#12517;&#12540;&#12523;&#12391;&#27604;&#36611;&#30340;&#26032;&#12375;&#12356;&#12290;

os.system&#12392;&#12356;&#12358;&#38306;&#25968;&#12391;&#12418;&#12289;&#24341;&#25968;&#12395;&#12467;&#12510;&#12531;&#12489;&#12392;&#12394;&#12427;&#25991;&#23383;&#21015;&#12434;&#28193;&#12375;&#12390;&#12354;&#12370;&#12427;&#12392;
&#21516;&#31561;&#12398;&#32080;&#26524;&#12364;&#24471;&#12425;&#12428;&#12427;&#12290;
</summary>
  </entry>
  <entry>
    <title>&#38542;&#23652;&#12398;&#12354;&#12427;&#12487;&#12451;&#12524;&#12463;&#12488;&#12522;&#12434;&#36208;&#26619;&#12377;&#12427;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/524"/>
    <id>tag:code.nanigac.com:user_sources,524</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-06-09T16:35:22+09:00</updated>
    <summary> &#12288;&#12354;&#12427;&#12487;&#12451;&#12524;&#12463;&#12488;&#12522;&#20869;&#12395;&#12354;&#12427;&#12377;&#12409;&#12390;&#12398;&#12487;&#12451;&#12524;&#12463;&#12488;&#12522;&#12392;&#12501;&#12449;&#12452;&#12523;&#12434;&#34920;&#31034;&#12377;&#12427;&#12290;

&#12487;&#12451;&#12524;&#12463;&#12488;&#12522;&#12364;&#38542;&#23652;&#27083;&#36896;&#12395;&#12394;&#12387;&#12390;&#12356;&#12427;&#22580;&#21512;&#12399;&#12289;&#12487;&#12451;&#12524;&#12463;&#12488;&#12522;&#12364;&#23384;&#22312;&#12375;&#12394;&#12367;
&#12394;&#12427;&#12414;&#12391;&#12289;&#19978;&#35352;&#20966;&#29702;&#12434;&#34892;&#12358;&#12290;

 &#12288;&#19978;&#35352;&#12398;&#21839;&#38988;&#12434;&#35299;&#12367;&#22580;&#21512;&#12289;&#12300;&#12487;&#12451;&#12524;&#12463;&#12488;&#12522;&#20869;&#12434;&#36208;&#26619;&#12377;&#12427;&#12301;&#12392;&#12356;&#12358;&#20966;&#29702;&#12434;&#20877;&#24112;&#30340;&#12395;&#34892;&#12358;&#24517;&#35201;&#12364;&#12354;&#12427;&#12290;

&#35299;&#27861;&#12364;&#20998;&#12363;&#12428;&#12400;&#12289;&#12381;&#12428;&#12411;&#12393;&#38627;&#12375;&#12367;&#12394;&#12356;&#12364;&#12289;&#20877;&#24112;&#20966;&#29702;&#12434;&#26360;&#12367;&#12398;&#12399;&#12289;
&#12381;&#12428;&#12394;&#12426;&#12395;&#38754;&#20498;&#12367;&#12373;&#12356;&#12290;

Python&#12395;&#12399;&#12289;os.walk&#12392;&#12356;&#12358;&#38306;&#25968;&#12364;&#29992;&#24847;&#12373;&#12428;&#12390;&#12362;&#12426;&#12289;&#19978;&#35352;&#20966;&#29702;&#12434;&#23481;&#26131;&#12395;&#34892;&#12358;&#20107;&#12364;
&#12391;&#12365;&#12427;&#12290;

os.walk&#12399;&#12289;&#24341;&#25968;&#12392;&#12375;&#12390;&#12487;&#12451;&#12524;&#12463;&#12488;&#12522;&#12434;&#28193;&#12377;&#12392;&#12289;&#12487;&#12451;&#12524;&#12463;&#12488;&#12522;&#20869;&#12434;&#36208;&#26619;&#12375;&#12390;&#12289;
&#29694;&#22312;&#12398;&#12487;&#12451;&#12524;&#12463;&#12488;&#12522;&#12289;&#12487;&#12451;&#12524;&#12463;&#12488;&#12522;&#20869;&#12395;&#12354;&#12427;&#12487;&#12451;&#12524;&#12463;&#12488;&#12522;&#12289;&#12487;&#12451;&#12524;&#12463;&#12488;&#12522;&#20869;&#12395;&#12354;&#12427;
&#12501;&#12449;&#12452;&#12523;&#12434;&#36820;&#12377;&#12290;


&#19979;&#35352;&#12395;&#31034;&#12377;&#12503;&#12525;&#12464;&#12521;&#12512;&#12399;&#12289;os.walk&#12434;&#29992;&#12356;&#12390;&#12289;&#12487;&#12451;&#12524;&#12463;&#12488;&#12522;&#36208;&#26619;&#12434;&#34892;&#12356;&#12289;
&#38542;&#23652;&#27083;&#36896;&#12434;&#12479;&#12502;&#12391;&#34920;&#29694;&#12375;&#12383;&#12418;&#12398;&#12384;&#12290;


&#32080;&#26524;&#12399;&#27425;&#12398;&#12424;&#12358;&#12394;&#24418;&#12392;&#12394;&#12427;&#12290;

  . /
	__init__.py
	__init__.pyc
	manage.py
	manage.py~
	settings.py
	settings.pyc
	test2.py
	test2.py~
	test3.py
	test3.py~
	test4.py
	test4.py~
	urls.py
	urls.pyc
	bookmark /
		__init__.py
		models.py
		models.py~
		views.py
		hoge /
			d
	hoge /
	uuu /
 &#65288;&#25991;&#12289;&#22266;&#12417;&#12290;&#12356;&#12363;&#12364;&#12363;&#65311;&#65289;
</summary>
  </entry>
  <entry>
    <title>Python&#12391;&#22806;&#37096;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#23455;&#34892;&#12375;&#12289;&#32080;&#26524;&#12434;&#21462;&#24471;&#12377;&#12427;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/522"/>
    <id>tag:code.nanigac.com:user_sources,522</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-06-05T00:42:58+09:00</updated>
    <summary>subprocess &#12514;&#12472;&#12517;&#12540;&#12523;&#12398;Popen&#12463;&#12521;&#12473;&#12434;&#29992;&#12356;&#12390;&#12289;
&#22806;&#37096;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#23455;&#34892;&#12375;&#12390;&#12289;&#12381;&#12398;&#32080;&#26524;&#12434;&#22793;&#25968;&#12395;&#26684;&#32013;&#12434;&#34892;&#12358;&#12290;
&#31532;&#19968;&#24341;&#25968;&#12395;&#12399;&#12289;&#23455;&#34892;&#12467;&#12510;&#12531;&#12489;&#12434;&#31034;&#12377;&#25991;&#23383;&#21015;&#12289;&#12414;&#12383;&#12399;&#12458;&#12503;&#12471;&#12519;&#12531;&#12394;&#12393;&#12434;&#21547;&#12417;&#12383;&#37197;&#21015;&#12434;&#25351;&#23450;&#12290;
&#21517;&#21069;&#20184;&#12365;&#24341;&#25968;&#12391;&#12354;&#12427;stdout&#12395;PIPE&#12434;&#25351;&#23450;&#12377;&#12427;&#12371;&#12392;&#12391;&#12289;&#23376;&#12503;&#12525;&#12475;&#12473;&#12392;&#12375;&#12390;&#23455;&#34892;&#12373;&#12428;&#12390;&#12356;&#12427;
&#22806;&#37096;&#12503;&#12525;&#12464;&#12521;&#12512;&#12392;&#27161;&#28310;&#20986;&#21147;&#12434;&#29992;&#12356;&#12390;&#36963;&#12426;&#21462;&#12426;&#12434;&#34892;&#12358;&#12371;&#12392;&#12364;&#21487;&#33021;&#12392;&#12394;&#12427;&#12290;


&#20197;&#19979;&#12398;&#12424;&#12358;&#12394;&#32080;&#26524;&#12434;&#34920;&#31034;&#12377;&#12427;&#12290;

$ ./recip1601.py
total 5296
-rwxr-xr-x  1 ponsuke  staff        0  5 14 00:15 #recip0908.py#
-rw-r--r--  1 ponsuke  staff      906  5 15 23:28 #recip0909entry#
-rwxr-xr-x  1 ponsuke  staff     1624  1 22 01:10 #recip408.py#
-rwxr-xr-x  1 ponsuke  staff      127  1 24 01:05 #recip412.py#
-rwxr-xr-x  1 ponsuke  staff     1236  2 11 23:52 #recip511.py#
-rwxr-xr-x  1 ponsuke  staff      233  3 30 14:23 #recip718.py#
-rw-r--r--  1 ponsuke  staff        1  5 11 00:05 #test_hlink#
-rw-r--r--  1 ponsuke  staff        7  3 23 00:06 &gt;result

</summary>
  </entry>
  <entry>
    <title>PHP &#12392; Perl &#12398; exec &#38306;&#25968;&#12399;&#25369;&#21205;&#12364;&#36949;&#12358;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/521"/>
    <id>tag:code.nanigac.com:user_sources,521</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-06-08T08:54:07+09:00</updated>
    <summary>PHP &#12392; Perl &#12398; exec &#38306;&#25968;&#12399;&#12289;&#25369;&#21205;&#12364;&#12385;&#12364;&#12358;&#12290;

PHP&#12398;exec&#38306;&#25968;&#12399;&#12289;&#22806;&#37096;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#23455;&#34892;&#12375;&#12383;&#24460;&#12391;&#12289;
&#21628;&#12403;&#20986;&#12375;&#20803;&#12398;&#20966;&#29702;&#12434;&#24341;&#12365;&#32154;&#12365;&#23455;&#34892;&#12375;&#12414;&#12377;&#12290;

&#65288;&#20363;&#65289;
 
 &#20966;&#29702;&#38283;&#22987;
 &#8595;
 exec( "&#12539;&#12539;&#12539;" ) // &#22806;&#37096;&#20966;&#29702;&#23455;&#34892;&#12289;&#32066;&#20102;
 &#8595;
 // &#21628;&#12403;&#20986;&#12375;&#20803;&#20966;&#29702;&#23455;&#34892;
 &#8595;
 &#20966;&#29702;&#32066;&#20102;

&#12391;&#12377;&#12364;&#12289;Perl&#12398;exec&#38306;&#25968;&#12399;&#12289;&#22806;&#37096;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;
&#21628;&#12403;&#20986;&#12375;&#12383;&#24460;&#12289;&#21628;&#12403;&#20986;&#12375;&#20803;&#12398;&#20966;&#29702;&#12434;&#23455;&#34892;&#12375;&#12414;&#12379;&#12435;&#12290;

exec&#38306;&#25968;&#12391;&#22806;&#37096;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#23455;&#34892;&#12375;&#12383;&#12425;&#12289;
&#12503;&#12525;&#12464;&#12521;&#12512;&#33258;&#20307;&#12364;exec&#38306;&#25968;&#12391;&#21628;&#12403;&#20986;&#12373;&#12428;&#12383;
&#12503;&#12525;&#12464;&#12521;&#12512;&#12395;&#12372;&#12387;&#12381;&#12426;&#20837;&#12428;&#26367;&#12431;&#12387;&#12390;&#12375;&#12414;&#12356;&#12414;&#12377;&#12290;

&#65288;&#20363;&#65289;hoge&#12503;&#12525;&#12464;&#12521;&#12512;&#12391;foo&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#21628;&#12403;&#20986;&#12377;&#12392;
 
 hoge &#20966;&#29702;&#38283;&#22987;
 &#8595;
 exec( "foo" ) // &#22806;&#37096;&#20966;&#29702;&#23455;&#34892;
 &#8595;
 foo&#32066;&#20102;

Perl&#12391;PHP&#12398;exec&#38306;&#25968;&#12392;&#21516;&#31561;&#12398;&#12371;&#12392;&#12434;&#34892;&#12358;&#12395;&#12399;&#12289;

&#65297;&#12289;&#22806;&#37096;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;``&#12496;&#12483;&#12463;&#12463;&#12457;&#12540;&#12488;&#12391;&#22258;&#12416;
&#65298;&#12289;system&#38306;&#25968;&#12434;&#20351;&#12358;
&#65299;&#12289;fork&#38306;&#25968;&#12391;&#23376;&#12503;&#12525;&#12475;&#12473;&#12434;&#20316;&#12387;&#12390;&#12289;
  &#23376;&#12503;&#12525;&#12475;&#12473;&#12398;&#26041;&#12391;&#12289;exec&#38306;&#25968;&#12434;&#20351;&#12358;

&#12392;&#12356;&#12358;&#12289;&#65299;&#12388;&#12398;&#36984;&#25246;&#32930;&#12364;&#12354;&#12426;&#12414;&#12377;&#12290;

&#65297;&#65292;&#65298;&#12399;&#12289;PHP&#12398;exec&#12467;&#12510;&#12531;&#12489;&#21516;&#27096;&#12289;&#12381;&#12428;&#12411;&#12393;&#21839;&#38988;&#12394;&#12367;&#12289;
&#23455;&#35013;&#12391;&#12365;&#12414;&#12377;&#12364;&#12289;&#65299;&#12399;&#12420;&#12420;&#38627;&#12375;&#12356;&#12391;&#12377;&#12290;

&#12381;&#12428;&#12395;&#12289;&#65299;&#12434;&#12431;&#12374;&#12431;&#12374;Web&#12450;&#12503;&#12522;&#12391;&#34892;&#12358;&#21033;&#28857;&#12418;
&#12394;&#12356;&#12392;&#24605;&#12356;&#12414;&#12377;&#12375;&#12539;&#12539;&#12539;&#12290;

Perl&#12391;&#22806;&#37096;&#12503;&#12525;&#12464;&#12521;&#12512;&#12434;&#21628;&#12403;&#20986;&#12377;&#38555;&#12399;&#12289;
&#27671;&#12434;&#12388;&#12369;&#12383;&#26041;&#12364;&#33391;&#12356;&#12424;&#12358;&#12391;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>youtubeAPI&#12434;&#20351;&#12387;&#12390;&#31777;&#21336;&#12395;&#12487;&#12540;&#12479;&#12364;&#21462;&#12387;&#12390;&#26469;&#12428;&#12427;Python&#12514;&#12472;&#12517;&#12540;&#12523;&#12300;python-youtube&#12301;&#12434;&#20351;&#12387;&#12390;&#12522;&#12522;&#12459;&#12523;&#12394;&#24773;&#22577;&#12434;&#21462;&#24471;&#12375;&#12390;&#12415;&#12383;&#12424;&#65310;&#65308;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/439"/>
    <id>tag:code.nanigac.com:user_sources,439</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2008-02-23T13:28:38+09:00</updated>
    <summary>youtubeAPI&#12434;&#20351;&#12387;&#12390;&#31777;&#21336;&#12395;&#12487;&#12540;&#12479;&#12364;&#21462;&#12387;&#12390;&#26469;&#12428;&#12427;
Python&#12514;&#12472;&#12517;&#12540;&#12523;&#12300;python-youtube&#12301;&#12434;&#20351;&#12387;&#12390;&#12522;&#12522;&#12459;&#12523;&#12394;&#24773;&#22577;&#12434;
&#21462;&#24471;&#12375;&#12390;&#12415;&#12383;&#12424;&#65310;&#65308;

&#12300;python-youtube&#12301;
http://thpinfo.com/2007/python-youtube/
</summary>
  </entry>
  <entry>
    <title>Python&#12398;XML&#35299;&#26512;&#12514;&#12472;&#12517;&#12540;&#12523;&#12300;BeautifulSoup&#12301;&#12398;&#20351;&#12356;&#26041;</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/410"/>
    <id>tag:code.nanigac.com:user_sources,410</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2007-12-20T10:10:50+09:00</updated>
    <summary>Python&#12398;XML&#35299;&#26512;&#12514;&#12472;&#12517;&#12540;&#12523;&#12300;BeautifulSoup&#12301;&#12434;&#20351;&#12387;&#12390;
AmazonAPI&#12391;&#21462;&#24471;&#12375;&#12383;&#21830;&#21697;&#24773;&#22577;&#12434;&#20351;&#12356;&#12420;&#12377;&#12356;&#24418;&#12395;&#25972;&#24418;&#12375;&#12390;&#12415;&#12383;
</summary>
  </entry>
  <entry>
    <title>recipe 2.14 use complex number</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/400"/>
    <id>tag:code.nanigac.com:user_sources,400</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2007-12-06T00:11:31+09:00</updated>
    <summary>Python&#12391;Perl CookBook &#12398;&#12300;&#12524;&#12471;&#12500;2.14 &#35079;&#32032;&#25968;&#12434;&#20351;&#29992;&#12377;&#12427;&#12301;&#12434;
&#35299;&#12356;&#12390;&#12415;&#12383;&#12290;

python&#12391;&#12399;&#12289;&#20309;&#12425;&#12363;&#12398;&#12514;&#12472;&#12517;&#12540;&#12523;&#12434;&#12452;&#12531;&#12509;&#12540;&#12488;&#12377;&#12427;&#20107;&#12394;&#12367;&#12289;
&#35079;&#32032;&#25968;&#12434;&#20351;&#29992;&#12375;&#12390;&#12289;&#22235;&#21063;&#28436;&#31639;&#12364;&#21487;&#33021;&#12391;&#12377;&#12290;

&#12414;&#12383;&#12289;cmath&#12514;&#12472;&#12517;&#12540;&#12523;&#12434;&#20351;&#29992;&#12377;&#12427;&#20107;&#12391;&#12289;&#35079;&#32032;&#25968;&#12395;&#23550;&#24540;&#12375;&#12383;
&#25968;&#23398;&#38306;&#25968;(sin,cos)&#12364;&#20351;&#29992;&#21487;&#33021;&#12391;&#12377;&#12290;
</summary>
  </entry>
  <entry>
    <title>recipe 2.14 Maltiplying Matrices</title>
    <link type="text/html" rel="alternate" href="http://code.nanigac.com/source/view/397"/>
    <id>tag:code.nanigac.com:user_sources,397</id>
    <author>
      <name>ponsuke</name>
    </author>
    <updated>2007-12-05T16:40:12+09:00</updated>
    <summary>python &#12391; Perl &#12463;&#12483;&#12463;&#12502;&#12483;&#12463;&#12398;&#12524;&#12471;&#12500;&#12434;&#35299;&#12356;&#12390;&#12415;&#12383;&#12290;
</summary>
  </entry>
</feed>
