Korn shell command line buffer size

Posted on 2005-05-05
Last Modified: 2013-12-26
Hi all,

Im on HPUX.
Whats the size of the shell command line buffer?? Basically I have to declare a shell array, and I might have to squeeze a large number of lements in it (additionally, the lements may have a very long name)

Question by:manav_mathur
    LVL 16

    Author Comment

    Korn shell
    LVL 12

    Assisted Solution

    Hi manav_mathur,
    Check the "ulimit" command (it might also be named "limit"). The default maximum shell command line size is 2MB on Solaris, but I don't know about HPUX.

    You could also do some binary search for it. Just write a small helper program (C) which creates huge command lines.


    LVL 38

    Accepted Solution

    for sh the commandline limit is 256 chars, but ksh is a lot bigger than 256 chars for

    The Ksh array can have a MAX 512 elements. [0-511].
    LVL 16

    Author Comment

    Thanks to you both. Yuzh directly addresses my problem (of array size)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Suggested Solutions

    Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
    If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now