Operating System - HP-UX
1745853 Members
4131 Online
108723 Solutions
New Discussion

Modify Kernel Parameters using expressions

 
Ajagbe Aderemi
Advisor

Modify Kernel Parameters using expressions

Hi All,

 

Please I'm trying to modify some kernel parameters using an expression that contain brackets (( )) but i keep getting error when applying the expression, kindly assist? here is the error...

 

 Enter Value/Expression OR q(quit)   = ((8 * NPROC + 2048) +1024)

     The Expression is not valid

     Enter Value/Expression OR q(quit)   = ((8*nproc+2048)+1024)

     The expression evaluated to: 35840

     Do you want to save the current kernel configuration ? (y/n/q)[y] = y

     Enter Comments =

     Command Preview: /usr/sbin/kctune -h -B ncsize=((8*nproc+2048)+1024)

     Do you want to proceed ? (y/n) [n] = y


     /usr/sam/tui/kc/tunmod.sh[4]: Syntax error at line 1 : `((' is not expected.

1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Modify Kernel Parameters using expressions

>that contain brackets (( )) but I keep getting error

 

I see no brackets here, just parentheses.

 

>tunmod.sh[4]: Syntax error at line 1 : `((' is not expected.

 

Hmm, I would have thought this would be quoted to protect the expression.

You could just add a space between the two left parentheses?