Date: Wed, 27 Feb 2008 10:16:20 +0100 From: Erik Norgaard <norgaard@locolomo.org> To: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> Cc: freebsd-questions@freebsd.org Subject: Re: argument list too long Message-ID: <47C52A64.5000701@locolomo.org> In-Reply-To: <20080227100132.G1831@wojtek.tensor.gdynia.pl> References: <20080227100132.G1831@wojtek.tensor.gdynia.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
Wojciech Puchar wrote: > what is a limit of amount of arguments passed to program? is it > hardwired or can be changed. > > i found it to be in order of few thousands parameteres searching google results in an article for linux http://www.linuxjournal.com/article/6060 gives some ideas to work arounds, the most radical to recompile the kernel. Then a sysctl -a seems to indicate it is also a kernel limitation on FreeBSD: kern.argmax: 262144 I'm not certain that this is the limit of command line arguments, and I haven't tried to set it. Nor is it clear to me if this is the number of arguments or the number of characters in the argument string. In the latter case, a "few thousand" argumenst could easily reach that limit. Cheers, Erik
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47C52A64.5000701>