[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Max length of os.execute command
- From: William Ahern <william@...>
- Date: Sun, 13 Jul 2014 12:40:44 -0700
On Sun, Jul 13, 2014 at 07:26:35PM +0200, Petite Abeille wrote:
> On Jul 13, 2014, at 3:58 AM, William Ahern <william@25thandClement.com> wrote:
> > os.execute will use sh -c '...'. So it could be a shell limit on the maximum length of a single command argument.
> getconf ARG_MAX perhaps?
That's the maximum _number_ of arguments. Only 3 are passed via os.execute.
As someone else mentioned the OP needs to provide more information. It's
probably something else entirely, perhaps related to argument parsing.