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

[ns] Xgraph filename



Dear all,

I want to use xgraph output the data file. Since I use the array to store
the file names. and the number of file is not fixed, which depends on the
argument of my program. So I can not express my data file names in the
'exec xgraph' statement.

For example:

when I type:
ns my.tcl 2
the program will produce:
exec xgraph out0.tr out1.tr out2.tr


if I type
ns my.tcl 3
the program will produce:
exec xgraph out0.tr out1.tr out2.tr out3.tr

Does anybody know how to control the argument(filename) in exec xgraph
statement?

Thanks a lot in advance.

Grace