cancel
Showing results for 
Search instead for 
Did you mean: 

ARG_MAX Red-Hat 5.7

 
Highlighted
New Member

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 2
Highlighted
Acclaimed Contributor

Re: ARG_MAX Red Hat 5.7

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

Highlighted
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