[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] limitation of ns parameters



>     I am wondering if there is any limitation for the number of parameters
> that ns is able to accept?
>     I used 6 parameters in a script invoked by ns which worked fine, but
> when I added another one (7 parameters total) it wouldn't pass the
> interpreter.
>     e.g1  command line as:
>               ns <filename.tcl> <par1> <par2> <par3> <par4> <par5> <par6>
>               --> pass
>      e.g.2  ns <filename.tcl> <par1> <par2> <par3> <par4> <par5> <par6>
> <par7>
>               --> error:  "usage:  ns <cript-name> <par>"

there is no such constraint (of course, unless you run out of the limit of
your shell). Check your script and most likely there's something in your
pararameter parsing.

>      Or am I missing something here?
> 
> thanks.
> -Baoqing
> 
> 
> 
>