On Tue, Oct 30, 2001 at 03:57:57PM -0600, 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?

#!/usr/bin/perl -w
use strict;
opendir(DIR,".") or die $!;
my @k = grep { /^kernel\./ } readdir(DIR);
for (@k)
{
	`cat $_ | /usr/lib/sendmail linux-kernel at lists.real-time.com`;
	sleep 5;
}

-- 
johntrammell at yahoo.com | 78BA 706C C5F9 9321 E7C4 933B D063 907B A88E 924B
Twin Cities Linux Users Group Mailing List (TCLUG)
Minneapolis/St. Paul, Minnesota  http://www.mn-linux.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20011030/1894210b/attachment.pgp