[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "resubmit" when crowded /deferred
Matti Aarnio writes:
> On Tue, May 06, 2003 at 06:37:14PM +0400, Eugene Crosser wrote:
>> Another smallish thing that I have in my bag is a cure for a trouble
>> that happens if your "deferred" directory becomes so crowded that
>> shell fails to expand "*". It happend several times here when the
>> server that provides getpwnam() information went down for some
>> time. After it happens, "resubmit" does not work anymore, forever.
>>
>> I tried to make my solution as portable as I could; if you have GNU
>> "mv" the same thing can be done more elegant through "xargs".
>
> Knowing that a) it isn't speed critical, b) we want generic portability:
Please!
Isn't speed critical is one thing. 250,000 separate invocations of 'mv'
is quite another. Eugene's solution is hackish, but it should work on
essentially all unixes and its worst-case behaviour is much better.
> I did check upon 'xargs', too, but it isn't that trivial... hmm..
> Or maybe:
>
> find . -type f -print | xargs -i -n 99 mv '{}' ../router/
I'd be surprised if that was very portable...
--Arnt
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi