[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Max length of os.execute command
- From: Saurabh T <saurabh@...>
- Date: Mon, 14 Jul 2014 15:50:02 +0000
----------------------------------------
> 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