[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Max length of os.execute command
- From: William Ahern <william@...>
- Date: Sat, 12 Jul 2014 18:58:31 -0700
On Sat, Jul 12, 2014 at 07:41:50PM -0300, Elias Barrionovo wrote:
> On Sat, Jul 12, 2014 at 7:35 PM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> > Does a command that long work if you issue it as one line in
> > the command shell?
>
>
> OP: "Just as a note the same command runs fine through the shell so
> it's not a shell limit."
os.execute will use sh -c '...'. So it could be a shell limit on the maximum
length of a single command argument. Invoking the same command from an
interactive shell works quite differently; for one thing, it's parsed
entirely differently.