Hello Dave Mielke:

On Tue, 16 May 2000 23:24:09 -0400 (EDT) you wrote:

> [quoted lines by Song Jianping on May 17, 2000, at 10:47]
> 
> 
> You're probably running into one of two system limits. You didn't give any
> details, so it's not possible to know for sure. Here, however, are a couple of
> guesses.
> 
Thanks. 
I am writing a shell script, which will not accept any arguments. But
in this xcript, i want to run a command with many arguments, such as
send the same mail to many peope: 
        "mail person1@site1 person2@sit2 person3@site3 ...... < mymail"
I am wondering how many addresses i can give to mail, which is related
to the max command line legth.

According to what you said, in this situation the limit is 128K?
Do you think so?

> First:There is a maximum line length limit for lines being entered via the
> keyboard (tty), or via a pseudo keyboard (pty) e.g. if you're using telnet,
> when in canonical input mode (which is usually the case). You can query this
> value via the command "getconf MAX_CANON path-to-keyboard-device". For example:
> 
>     getconf MAX_CANON /dev/tty1
>     255
> 
> Second: There is a system limit on the number of bytes which can be passed to a
> created process during the fork. This essentially includes the combined size of
> the argument list and the environment variable names and values. You can query
> this value via the command "getconf ARG_MAX". For example:
> 
>     getconf ARG_MAX
>     131072
> 
> -- 
> Dave Mielke           | 856 Grenon Avenue | I believe that the Bible is the
> Phone: 1-613-726-0014 | Ottawa, Ontario   | Word of God. Please contact me
> EMail: [EMAIL PROTECTED] | Canada  K2B 6G3   | if you're concerned about Hell.
> 

---- 
Best Regards
Song                                     mailto:[EMAIL PROTECTED]

Reply via email to