On Tue, 30 Oct 2001, Bob Tanner wrote:
> Ok, I got 48,859 msg that I need to inject into the archives.
>
> I tried this little script:
>
> for i in `ls kernel.*`; do
>   cat $i | /usr/lib/sendmail linux-kernel at lists.real-time.com;
>   sleep 5s;
> done
>
> The messages are called kernel.* (space is just for readability).
>
> I get this message:
>
> bash: /bin/ls: Argument list too long
>
> Anyone have a quick hack for me to get this working?

find . -name kernel.\* -exec cat {} | /usr/lib/sendmail linux-kernel at lists.real-time.com \;

or something similar.

-- 
Nate Carlson <natecars at real-time.com>   | Phone : (952)943-8700
http://www.real-time.com                | Fax   : (952)943-8500