From: Kostarev Alexey <kaf@nevod.ru> To: ALT Linux Community <community@lists.altlinux.org> Subject: Re: [Comm] Argument list too long Date: Tue, 07 Nov 2006 11:17:37 +0500 Message-ID: <45502501.2040602@nevod.ru> (raw) In-Reply-To: <op.tiggmapqgrsnvk@yuk.home.int> [-- Attachment #1: Type: text/plain, Size: 1156 bytes --] Yura Kalinichenko wrote: >03.11.06 у 09:35 Evgenii Terechkov у своєму листі писав(ла): > > > >>Eugene Suchkov пишет: >> >> >> >>>>хочу скопировать _много_ файлов >>>>к примеру >>>>cp /opt/cache/archives/*.rpm /tmp/ >>>>а получаю Argument list too long >>>>как принято такие вещи обходить? >>>> >>>> >>>find /opt/cache/archives -name "*.rpm" -exec cp {} /tmp/ \; >>> >>> >>Я правильно понимаю, что этот способ ЧУДОВИЩНО неэффективен? Ведь на каждый >> >> Ну насчет ЧУДОВИЩНО я бы не сказал - как правило бинарный код процесса берется из кеша и накладных расходов не так уж много - по крайней мере когда речь идет о сотня файлов это вполне приемлимо >>файл (а их много) запускается отдельный процесс cp. Знает ли кто-нибудь >>альтернативу, учитывающую максимальный размер списка аргументов шелла и >>запускающую необходимый минимум процессов? Это возможно? >> >> >> > >cd /opt/cache/archives ; find . -name "*.rpm" | cpio -p --make-directories --verboose /tmp > > > Согласен - это мой излюбленный метод рекурсивного копирования директориев: find . -xdev | cpio -plmvd <целевой директорий> -- С Уважением Костарев А.Ф. [-- Attachment #2: kaf.vcf --] [-- Type: text/x-vcard, Size: 202 bytes --] begin:vcard fn:Alexey Kostarev n:Kostarev;Alexey org:Nevod Ltd. adr:;;;Perm;;;Russia email;internet:kaf@nevod.ru tel;work:(3422) 196-960 url:http://www.nevod.ru/nevod/staff/kaf/ version:2.1 end:vcard
next prev parent reply other threads:[~2006-11-07 6:17 UTC|newest] Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-11-03 6:50 Artem Zolochevskiy 2006-11-03 7:26 ` Eugene Suchkov 2006-11-03 7:35 ` Evgenii Terechkov 2006-11-03 7:53 ` Denis G. Samsonenko 2006-11-03 8:18 ` Evgenii Terechkov 2006-11-03 8:28 ` Denis G. Samsonenko 2006-11-03 9:08 ` Evgenii Terechkov 2006-11-03 9:34 ` Artem Zolochevskiy 2006-11-03 11:59 ` Sergey Vlasov 2006-11-03 7:55 ` [Comm] [OBORONA-SPAM] " Alexey Novikov 2006-11-03 19:33 ` [Comm] " Yura Kalinichenko 2006-11-07 6:17 ` Kostarev Alexey [this message] 2006-11-03 8:09 ` Eugene Ostapets 2006-11-07 4:41 ` Arkadiy Pavlik 2006-11-07 5:09 ` Evgenii Terechkov 2006-11-07 13:47 ` [Comm] [JT] " Michael Shigorin 2006-11-03 9:57 ` [Comm] " Kostarev Alexey
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=45502501.2040602@nevod.ru \ --to=kaf@nevod.ru \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git