Bob, Does 'ls' explode at the command line? Here is a perl hack, but there has got to be a better (perlish) way to do it, but my brain is stuck. ===== #!/usr/bin/perl -w $command = '| /usr/lib/sendmail linux-kernel at lists.real-time.com'; opendir(D, '.'); chomp(@dir = readdir(D)); closedir(D); foreach $file (@dir) { if ($file !~ m/^kernel[.]/) { next; } local $/ = ''; open(F, "< $file"); @contents = <F>; close(F); open(C, $command); print C $contents; close(C); sleep(5); } ===== Good luck, Troy >>> tanner at real-time.com 10/30/01 03:57PM >>> 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? -- Bob Tanner <tanner at real-time.com> | Phone : (952)943-8700 http://www.mn-linux.org, Minnesota, Linux | Fax : (952)943-8500 Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9 _______________________________________________ Twin Cities Linux Users Group Mailing List - Minneapolis/St. Paul, Minnesota http://www.mn-linux.org tclug-list at mn-linux.org https://mailman.mn-linux.org/mailman/listinfo/tclug-list