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.
cancel
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

Hi,

 

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?

 

Thanks

Kennedy

2 REPLIES
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

 

Thanks

Chris