{"id":716,"date":"2006-01-24T19:30:09","date_gmt":"2006-01-25T00:30:09","guid":{"rendered":"https:\/\/blog.nightmare.org\/?p=716"},"modified":"2024-03-08T19:32:37","modified_gmt":"2024-03-09T00:32:37","slug":"long-arguments","status":"publish","type":"post","link":"https:\/\/blog.nightmare.org\/?p=716","title":{"rendered":"long arguments"},"content":{"rendered":"<div class=\"storycontent\">\n<p>we get a lot of spam at work, and it tends to fill up the mqueue folder on the spam assassin server with bogus returns, to the point where i have to go in and rm a bunch of the older messages to get the server to calm down. <a href=\"http:\/\/spamassassin.apache.org\/\"><img decoding=\"async\" src=\"http:\/\/nightmare.org\/wp-images\/spamninja.gif\" border=\"0\" alt=\"spam ninja\" align=\"right\"\/><\/a> but rm can only handle a certain number of files (i&#8217;ve read this is a kernel limitation), so here is my workaround to nuke a large number of files (including word counts):<\/p>\n<blockquote>\n<p>\n[root@assassin mqueue]# rm -Rf<br \/>\n-bash: \/bin\/rm: Argument list too long<\/p>\n<p>[root@assassin mqueue]# ls -al | wc -l<br \/>\n  38794<\/p>\n<p>[root@assassin mqueue]# find . | xargs rm<br \/>\nrm: cannot remove `.&#8217; or `..&#8217;<\/p>\n<p>[root@assassin mqueue]# ls -al | wc -l<br \/>\n     35\n<\/p>\n<\/blockquote>\n<p>the important bit in all of that is of course:  find . | xargs rm\n<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>we get a lot of spam at work, and it tends to fill up the mqueue folder on the spam assassin server with bogus returns, to the point where i have to go in and rm a bunch of the older messages to get the server to calm down. but rm can only handle a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"bgseo_title":"","bgseo_description":"","bgseo_robots_index":"index","bgseo_robots_follow":"follow","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[24,28],"tags":[],"class_list":["post-716","post","type-post","status-publish","format-standard","hentry","category-archive","category-tech"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=\/wp\/v2\/posts\/716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=716"}],"version-history":[{"count":1,"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=\/wp\/v2\/posts\/716\/revisions"}],"predecessor-version":[{"id":717,"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=\/wp\/v2\/posts\/716\/revisions\/717"}],"wp:attachment":[{"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}