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

Re: [ns] TCL + commandline arguments



try 
	index $argv n

to get the n'th argument, n = 0 gets you the first argument (not the name of 
the script)
/Dan

On Tuesday 28 August 2001 23:23, sameer tilak wrote:
> Hi All,
> I have a very simple doubt.
> Please tell me how to access the passed commandline
> arguments in TCL program ?
> for eg. If I say ns tclfile.tcl 100
> I want to say print the passed commandline argument in
> this file how can I do that ?
>
> Regards,
> -Sameer.