Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Here's my problem. I'm trying to read a network tunable setting , verify it is the right setting and then show it as pass or fail by assigning it a value of 0 for fail and 1 for pass. here is what I have so far and it almost works but I' m missing something. Any help would be greatly appreciated.
TEST: Unix-Review Global Network Options
DO no -a | awk -F"=" '/tcp_ndebug/ && $2==100 '
#IF OUTPUT echo [[ $2 -eq 100 ]]
THEN
1 PASS Setting is correct
ELSE
1 FAIL Setting is incorrect
ENDIFthe problem is if I change the fail usint hte no command, this test always passes.. I tried a conditional statement which is commented out and it gives the same solution.
I would be very grateful if someone could show me what I'm missing. Thanks in advance for any help.

this looks familiar. you have got your solution from another forum correct? describe your problem in that forum so i can try to help.

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |