This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: B20 (NT) xargs creates multiple commands, not just one


"BigFred" <bigfred@geocities.com> writes:

> I'm trying to use a script using xargs to create a JAR file in
> java.....
> 
> xargs issues multiple JAR commands apparently due to the number of
> files being passed to it.
> 
> each time JAR is executed it clears out the previous files already
> added.
> 
> i really need all the files included in one JAR command.
> 
> is there anyway to increase whatever buffer is being blown which
> causes xargs to execute multiple commands?

"man xargs" sez:

       --max-chars=max-chars, -s max-chars
              Use  at most max-chars characters per command line,
              including the command and initial arguments and the
              terminating  nulls  at  the  ends  of  the argument
              strings.  The default is as large as  possible,  up
              to 20k characters.

If the default is lower for Cygwin, it's probably for a good reason,
though.  You can't go wrong by checking the source ...

OH and BTW, the HTML formatted mail is a headache.

-- 
Ian Zimmerman
Lightbinders, Inc.
2325 3rd Street #324, San Francisco, California 94107


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]