Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

ARG_MAX Red-Hat 5.7

kennedy tembo
Occasional Visitor

ARG_MAX Red-Hat 5.7



Is there any way where I can change this ARG_MAX value from "#define ARG_MAX       131072" to a higher setting and how?


If so, are there any implications by doing so?




Dennis Handly
Acclaimed Contributor

Re: ARG_MAX Red Hat 5.7

What are you doing that you think you need ARG_MAX increased?

Chris Frangandonis
Regular Advisor

Re: ARG_MAX Red Hat 5.7

Hi Dennis,


Well when compiling a script with shc it returns the following


"maximum size of arguments to EXEC", could comprise its binary execution.

   In the current System the call sysconf(_SC_ARG_MAX) returns 131072 bytes

   and your script "Disp_1" is 204367 bytes length.


Yet , if we execute the compiled script we receive the following error mesg

Argument list too long