{"id":27776,"date":"2009-04-28T22:09:00","date_gmt":"2009-04-28T13:09:00","guid":{"rendered":"http:\/\/localhost:3001\/?p=27776"},"modified":"2009-04-28T22:09:00","modified_gmt":"2009-04-28T13:09:00","slug":"200904-article_37-html","status":"publish","type":"post","link":"https:\/\/y310.net\/?p=27776","title":{"rendered":"UNIX\u306e\u30d7\u30ed\u30bb\u30b9\u540d\u304c\u2026"},"content":{"rendered":"<p>\u672c\u65e5\u3001\u6c17\u304c\u3064\u3044\u305f\u3053\u3068\u306b\u3001Linux\u3067ps -e \u3068ps -ef\u306b\u3066\u5168\u304f\u7570\u306a\u308b\u30d7\u30ed\u30bb\u30b9\u540d\u304c\u8868\u793a\u3055\u308c\u308b\u3082\u306e\u304c\u3042\u308b<br \/>\n\u76e3\u8996\u30bd\u30d5\u30c8\u304cps -e\u3067\u8868\u793a\u3055\u308c\u308b\u30d7\u30ed\u30bb\u30b9\u540d\u3092\u4f7f\u3046\u304c\u3001\u305d\u3061\u3089\u306f\u5225\u306e\u30d7\u30ed\u30bb\u30b9\u3068\u540c\u3058\u540d\u524d\u3067\u30d7\u30ed\u30bb\u30b9\u306e\u5224\u5225\u304c\u3064\u304b\u306a\u3044\u3002\u3044\u3064\u3082\u306fps -ef\u3067\u8868\u793a\u3055\u308c\u308b\u30d7\u30ed\u30bb\u30b9\u540d\u3092\u898b\u3066\u3044\u305f\u304b\u3089\u3001\u307e\u3063\u305f\u304f\u6c17\u304c\u3064\u304b\u306a\u304b\u3063\u305f\u3002<br \/>\n\u3068\u3053\u308d\u3067\u3001\u3069\u3046\u3084\u3063\u305f\u3089\u3053\u3093\u306a\u3053\u3068\u304c\u51fa\u6765\u308b\u306e\u304b\u3068\u60a9\u307f\u3001\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u3063\u3066\u307f\u305f\u3002<br \/>\n#include <stdio.h><br \/>\nint main( int argc , char* argv[] )<br \/>\n{<br \/>\nchar* argument[3];<br \/>\nargument[0] = &#8220;sample&#8221;;<br \/>\nargument[1] = &#8220;100&#8221;;<br \/>\nargument[2] = NULL;<br \/>\nexecv( &#8220;\/bin\/sleep&#8221;, argument );<br \/>\n}<br \/>\n\u3053\u308c\u3060\u3051\u3067\u5b9f\u969b\u306b\u30d7\u30ed\u30bb\u30b9\u540d\u3092\u5909\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u306f\u77e5\u3089\u306a\u304b\u3063\u305f\u306a\u3041\u3002<br \/>\n\u3061\u306a\u307f\u306bMac\u3067\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3057\u305f\u3002<br \/>\n$ ps -e -o command,uname<br \/>\nsample 100       sleep<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u65e5\u3001\u6c17\u304c\u3064\u3044\u305f\u3053\u3068\u306b\u3001Linux\u3067ps -e \u3068p&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-27776","post","type-post","status-publish","format-standard","hentry","category-blog"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/y310.net\/index.php?rest_route=\/wp\/v2\/posts\/27776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/y310.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/y310.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/y310.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/y310.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27776"}],"version-history":[{"count":0,"href":"https:\/\/y310.net\/index.php?rest_route=\/wp\/v2\/posts\/27776\/revisions"}],"wp:attachment":[{"href":"https:\/\/y310.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/y310.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/y310.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}