Operating System - HP-UX
1831929 Members
3764 Online
110031 Solutions
New Discussion

Increase command line limit of 20480 characters

 
SOLVED
Go to solution
Jeffrey S. Sims
Trusted Contributor

Increase command line limit of 20480 characters

I am attempting to install sanitizer email filter using procmail but it doesn't seem to work. The only problem that I can think of is what I found in a troubleshooting sections of sanitizer, it reads:

HPUX defaults to a limit on the command line of 20480 characters, which is too short for the full sanitizer and causes it to fail. See your manual for how to increase this limit.

So if anyone could help me as to how I would go about increasing this I would greatly appreciate it. Or if you happen to know why when I use sanitizer in my .procmailrc file it filters all email and I receive nothing. Either answer would be a great help. Thanks in advance.

Jeff
2 REPLIES 2
S.K. Chan
Honored Contributor
Solution

Re: Increase command line limit of 20480 characters

If you are running HP-UX 10.20, there is a patch (PHKL_16751) that will add a new kernel parameter called "large_ncargs_enabled" which, if set to 1, will allow a much larger number of characters on the command line arguments.

Also, ARG_MAX found in /usr/include/limits.h indicates what this limit is currently set at. Incidentally, this limit is much higher on 11.0 versus 10.20 (the patch on 10.20 will increase to the larger number that 11.0
Michael Tully
Honored Contributor

Re: Increase command line limit of 20480 characters

On a 10.20 system the default is 20478
on a 11 system the default is 204800

Other than looking for the file, you can type in this
# getconf ARG_MAX

Michael
Anyone for a Mutiny ?