How many arguments..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dillipkumar
    New Member
    • Mar 2008
    • 41

    #1

    How many arguments..

    Hi,

    Can anybody tell me the answer of that question:

    Maximum how many arguments we can pass a shell script??



    Thanks,
    DKS
  • Tarantulus
    New Member
    • May 2007
    • 114

    #2
    I dunno about other OSes but on solaris
    Code:
    getconf ARG_MAX
    will answer that for you

    although I believe that as environmentals are passed using the same memoryspace as args, you would need to do X - Y where X is the output of the above command and Y is the number of environmental variables on the set in the current shell.

    Comment

    Working...