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

Re: [ns] command args




the command print_stats of the class of "p0" is not defined to take any
arguments (or not the number of arguments you pass to it is not correct -
a look at the source code will tell you what all is legal).

-ratul

On Tue, 1 Aug 2000, Apu Kapadia wrote:

> 
> In my finish procedure I am doing something like
> 
> $p0 print_stats
> 
> This works fine, but when I try to pass an argument to it:
> $p0 print_stats $bytes_received_
> 
> I get the following error:
> ns: finish:
>     (_o34 cmd line 1)
>     invoked from within
> "_o34 cmd print_stats 120000"
>     invoked from within
> "catch "$self cmd $args" ret"
>     (procedure "_o34" line 2)
>     (SplitObject unknown line 2)
>     invoked from within
> "$p0 print_stats $bytes_received_"
>     (procedure "finish" line 13)
>     invoked from within
> "finish"
> 
> Can somebody please help?
> 
> Thanks,
> Apu
> 
>