Xargs can help you get around the command line limit. It is a utility which is used specifically when piping a lot of arguments to a command.
> -----Original Message----- > From: Billy Newsom [mailto:[EMAIL PROTECTED] > Sent: Saturday, June 26, 2004 1:43 PM > To: [EMAIL PROTECTED] > Subject: Re: [Razor-users] Submit 10,000 [EMAIL PROTECTED] at a time? Razor-report > error > > > Patrick Shanahan wrote: > > > * Billy Newsom <[EMAIL PROTECTED]> [06-26-04 14:36]: > > > >>As I said in my post, running razor-report the normal way > fails with an > >>error message. I get the same basic error trying one > message (or a bunch > >>of messages): > >> > >># razor-report -d -home=/root/.razor > >>1087940170.95275.smtp.mydomain.com,S=4020:2, > >> > >>I get this error: > >> > >> Can't open 1087940170.95275.smtp.mydomain.com,S=4020:2,: > No such file or > >>directory > > > > > > Your answer is: > > > > ls -la 1087940170.95275.smtp.mydomain.com,S-4020:2, > > > > The file name/path you are using does *not* exist! > > > > the correct syntax is as I gave you in the previous post. > > You're a little snippy. As I said, the cat command worked > fine on the same > file or files. The strange but true problem is that > razor-report required a > full directory name, like thus: > > #razor-report -home=/root/.razor > /usr/local/vpopmail/domains/mydomain.com/oldspam/Maildir/cur/1 > 087940170.95275.smtp.mydomain.com,S=4020:2 > (this worked and submitted one report) > > But even though I was in the > "/usr/local/vpopmail/domains/mydomain.com/oldspam/Maildir/cur" > directory, > this doesn't work: > > #razor-report -home=/root/.razor > 1087940170.95275.smtp.mydomain.com,S=4020:2 > Can't open 1087940170.95275.smtp.mydomain.com,S=4020:2,: No > such file or > directory > > So now knowing this, razor-report should be fine if I merely > tell it to run > on the entire directory: > #razor-report -home=/root/.razor > /usr/local/vpopmail/domains/mydomain.com/oldspam/Maildir/cur > > (This acted like it worked, but it finished in about 4 > seconds. Apparently, > only one spam was submitted) > > The end result was that I copied the lot of the files to a > new directory, > #mkdir /z > #cp 1080* /z > #cp 1081* /z > #cp 1082* /z > #cp 1083* /z > #cp 1084* /z > etc. > > I could only copy a few at a time because of "too many > arguments." I then > could run the razor-report command. > > #razor-report -home=/root/.razor /z/1080* > #razor-report -home=/root/.razor /z/1081* > #razor-report -home=/root/.razor /z/1082* > #razor-report -home=/root/.razor /z/1083* > > Each of these commands would submit around 600 spams. I > solved how to submit > all of my spam, but I found two bugs in razor-report: > > 1. You are not allowed to use the current working directory > as your target. > You must use the entire path. > 2. Even if you follow the instructions of the man page and > try to submit an > entire directory's worth of messages, the program erroneously > thinks it is > submitting only one file and exits. > 2a. This limits the number of files that can be sent to > razor-report on the > commandline, because of the limits on the length of a > commandline. (usually > 1023 characters in UNIX) Normally, if an entire directory > would work as an > argument, you wouldn't need a wildcard like "./*" Using the > "*" wildcard > effectively forces the commandline to be quite huge if 1,000 > or more files > are being submitted. > > Billy > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > Razor-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/razor-users > ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Razor-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/razor-users