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

Re: command line argument for ns?



Tan Su Wei wrote:
> 
> Dear all,
>     I'd a question here,
> can we passed command line argument to ns like in c / tcl.
> for example :
> ns sim_script.tcl arg1 arg2 ... ...

It's built into Tcl: just reference elements in the argv array.
tcl/ex/tcp-fs/test1.tcl is one of the sample scripts that use command line
arguments.