lua-users home
lua-l archive

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



----------------------------------------
> From: saurabh@hotmail.com
> To: lua-l@lists.lua.org
> Subject: Max length of os.execute command
> Date: Fri, 11 Jul 2014 19:18:47 +0000
>
> Hi,
>
> I have os.execute silently failing because of long commands. What is the maximum length of the string that can go in os.execute? Just as a note the same command runs fine through the shell so it's not a shell limit.
>
> Thank you.
>

Thanks for all the answers. It was as people have said, due to 'system(3)' limit ie. ARG_MAX. The command was quite long but I was able to stick it into a file and execute it as a script.

saurabh