[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: arg variables
Duke
The arguments are kept in argv only. argv is a list of the arguments
passed to the program. You can access individual arguments by using the
lindex command, as follows;
set arg1 [lindex $argv 0]
0 being the first argument passed.
And argc contains the number of arguments passed and can be accessed as
$argc.
Alok Gulati
Department of Electrical and Computer Engineering
Louisiana State University
Home phone: (504) 336-9093
On Mon, 9 Mar 1998, Duke Tantiprasut wrote:
>
> Sorry for the trival question but I'm not very familiar with tcl/otcl.
> where are the arguments passed into ns kept. i.e. ns [file [arg arg...]]
> I checked $argv[] but I dont think that's it.
>
> Thanks
>
> Duke
>
>