[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Read input variable in tcl file
Been there, done that, even posted the code to the ns-users mailing
list. (not that it's in the lossy archives, which need fixing).
Read:
http://www-mash.cs.berkeley.edu/dist/archive/ns-users/0002/0361.html
L.
would someone please regenerate the list archives from the complete
mailboxes?
<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>
On Sat, 22 Apr 2000, Kim wrote:
> Date: Sat, 22 Apr 2000 13:37:05 -0700 (PDT)
> From: Kim <[email protected]>
> To: [email protected]
> Subject: [ns] Read input variable in tcl file
>
> Hi NS-users.
>
> Actually I have one file.tcl and I would like to
> collect simulation results by keeping the execution file
> and just modifying input
> parameters from outside.
>
> Let me give you an example.
> Here is file.tcl code which get input parameters from
> outside. (link_speed, link_delay alike)
>
> If we make it with C code only not NS,
> ...a.out 1(Mbps) 1(sec)... and before the execution
> we should make some reading blocks inside C code.
>
> How can I make it with NS. I want to be able to do it
> inside tcl code.
> Here is my imagination. It can be false.
> ... ns file.tcl 1(Mbps) 1(sec)...
> we need some coding in file.tcl for the above execution.
>
> Thanks in advance.
>
> Sincerely Yours,
> Tai Suk Kim