MLUG: Re: [MLUG] xargs: Argument list too long
Re: [MLUG] xargs: Argument list too long
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
The maximum length of the argument list can vary (though I'm not sure why it would vary from one Cygwin installation to another). Try the -L <max-args> option to xargs; this sets a limit on the number of arguments, and splits the input list and runs the command on each piece (which I gather is okay here) in case the number of inputs exceeds that limit.

Adam



Mike Miller wrote:
I'm using Cygwin on Windows XP and getting this error:

xargs: /path/to/id3.exe: Argument list too long

It's coming from a command that looks like this:

$ find . -name \*.[Mm][Pp]3 -type f -print0 | xargs -0 ~/bin/id3.exe -M -12 -c "source: 1"

"find" only comes up with 946 files, which is a relatively small number, so I don't understand the cause of this problem. I used the same command under Cygwin on an XP x64 machine and it didn't come up with this error even though there were definitely several times as many files identified by "find".

Any ideas?

I was able to partition it up and make it work like this:

$ find ./[A-E]* ...
$ find ./[F-G]* ...
$ find ./[H-M]* ...
$ find ./[N-Z]* ...

Seems like it shouldn't be necessary to do that!

Mike

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members


_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members