lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

How large is your command? We have a large project in C++ with Lua and we use os.execute with very large commands with at most 6433 characters, and we are not suffering any limit problem...

Pako ZM :)

2014-07-13 3:58 GMT+02:00 William Ahern <>:
On Sat, Jul 12, 2014 at 07:41:50PM -0300, Elias Barrionovo wrote:
> On Sat, Jul 12, 2014 at 7:35 PM, Dirk Laurie <> 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.