{"id":106,"date":"2009-08-20T12:04:32","date_gmt":"2009-08-20T12:04:32","guid":{"rendered":"http:\/\/www.houquner.com\/?p=391"},"modified":"2009-08-20T12:04:32","modified_gmt":"2009-08-20T12:04:32","slug":"%e5%85%b3%e4%ba%8ethe-parameter-list-is-too-long%e9%94%99%e8%af%af%e7%9a%84%e5%8e%9f%e5%9b%a0zz","status":"publish","type":"post","link":"https:\/\/www.houquner.com\/index.php\/archives\/106","title":{"rendered":"\u5173\u4e8e\u201dThe parameter list is too long\u201d\u9519\u8bef\u7684\u539f\u56e0(zz)"},"content":{"rendered":"<p>\u4eca\u5929\u5728\u7fa4\u91cc\uff0c\u8ddf\u522b\u4eba\u4e89\u8bba\u90a3\u4e2arm\u5220\u9664\u6587\u4ef6 \u65f6\u63d0\u793a\u592a\u591a\u7684\u95ee\u9898\uff0c\u540e\u6765\u5728\u7f51\u4e0a\u627e\u4e86\u4e00\u4e0b\u76f8\u5173\u7684\u4e1c\u897f\uff0c\u53d1\u73b0\u786e\u5b9e\u6709\u6b64\u7c7b\u95ee\u9898\uff0c\u4f46\u5927\u591a\u6570\u90fd\u662f\u5728aix\u63d0\u95ee\u51fa\u6765<br \/>\n   \u5982\u4e0b\uff1a<br \/>\n\u975e\u5e38\u5e38\u89c1\u7684\u4e00\u4e2a Unix\/Linux \u547d\u4ee4\u9519\u8bef\u4fe1\u606f: The parameter list is too long.<\/p>\n<p>$ find \/backup\/* -ctime 2<br \/>\nksh: \/usr\/bin\/find: 0403-027 The parameter list is too long.<br \/>\nind: 0403-027 The parameter list is too long\u3000\u8fd9\u4e2a\u9519\u8bef\u4fe1\u606f\u5f88\u8ba9\u4eba\u8ff7\u60d1: \u96be\u9053\u8be5\u76ee\u5f55\u4e0b\u6587\u4ef6\u592a\u591a\u4e86\u4e48? \u5176\u5b9e\u4e0d\u662f\u7684, \u95ee\u9898\u51fa\u5728\u90a3\u4e2a &#8220;*&#8221; \u4e0a,Korn Shell \u9ed8\u8ba4\u628a * \u4f5c\u4e3a Metadata \u5904\u7406\uff0c\u8fdb\u884c\u4e86\u6269\u5c55\uff0c\u8fdb\u800c\u8fd9\u6761\u8bed\u53e5\u5907\u9519\u8bef\u7684\u89e3\u6790\uff0e\u6211\u7684\u64cd\u4f5c\u5e73\u53f0\u662f AIX 5.3. \u6211\u4e0d\u786e\u5b9a\u8fd9\u662f\u548c\u8fd9\u4e2a\u5e73\u53f0\u7684 Korn Shell \u6709\u5173\uff0e<br \/>\n\u4f7f\u7528 ls \/ grep \/ find \u7b49\u547d\u4ee4\u65f6\u4faf\u56e0\u4e3a\u901a\u914d\u7b26\u7684\u4f7f\u7528, \u4e00\u4e0d\u5c0f\u5fc3\u5c31\u4f1a\u9047\u5230\u8fd9\u6837\u7684\u9519\u8bef\uff0e\u53ef\u4ee5\u901a\u8fc7\u5bf9\u5bf9\u8c61\u6dfb\u52a0\u5f15\u53f7\u6765\u7981\u6b62\u6269\u5c55\uff0e<\/p>\n<p>\u53e6\u5916\u6709\u7684\u65f6\u5019\uff0c \u4f7f\u7528 rm \u547d\u4ee4\u7684\u65f6\u5019\u4e5f\u53ef\u80fd\u9047\u5230:<\/p>\n<p>rm:0403-027 The parameter list is too long.<\/p>\n<p>\u8fd9\u4e2a\u9519\u8bef\u7684\u6839\u672c\u539f\u56e0\u662f\u56e0\u4e3a\u3000\/usr\/include\/limits.h \u5b9a\u4e49\u7cfb\u7edf\u6838\u5fc3 LINE_BUFSZ \u9650\u5236\uff0e<br \/>\n\u5982\u679c\u6709\u5927\u91cf\u6587\u4ef6\u6570\u9700\u8981\u5220\u9664\uff0c<br \/>\n\u53ef\u4ee5\u8003\u8651\u7528 xargs \u7684 -n \u53c2\u6570\u8fdb\u884c\u6279\u91cf\u5220\u9664.\u53c2\u8003\u5982\u4e0b\u793a\u4f8b:<br \/>\nfind \/backup\/ -ctime 2 -print | xargs -n 10 rm {} ;<\/p>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"https:\/\/www.houquner.com\">Kermit\u7684\u7f51\u7ad9<\/a> &raquo; <a href=\"https:\/\/www.houquner.com\/index.php\/archives\/106\">\u5173\u4e8e\u201dThe parameter list is too long\u201d\u9519\u8bef\u7684\u539f\u56e0(zz)<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u5728\u7fa4\u91cc\uff0c\u8ddf\u522b\u4eba\u4e89\u8bba\u90a3\u4e2arm\u5220\u9664\u6587\u4ef6 \u65f6\u63d0\u793a\u592a\u591a\u7684\u95ee\u9898\uff0c\u540e\u6765\u5728\u7f51\u4e0a\u627e\u4e86\u4e00\u4e0b\u76f8\u5173\u7684\u4e1c\u897f\uff0c\u53d1\u73b0\u786e\u5b9e\u6709\u6b64\u7c7b\u95ee\u9898\uff0c\u4f46\u5927\u591a\u6570\u90fd\u662f\u5728aix\u63d0\u95ee\u51fa\u6765 \u5982\u4e0b\uff1a \u975e\u5e38\u5e38\u89c1\u7684\u4e00\u4e2a Unix\/Linux \u547d\u4ee4\u9519\u8bef\u4fe1\u606f: The parameter list is too [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-106","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/posts\/106"}],"collection":[{"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/comments?post=106"}],"version-history":[{"count":0,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/posts\/106\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/media?parent=106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/categories?post=106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/tags?post=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}