Re: [ns] Multiple simulations in NS

2006-05-16 Thread Tuhin Kanti Sharma
hey, Thanx a lot Filippe. Your help really helped me complete my task. I am really obliged. Cheerz Tuhin M.Sc. (Computer Science) Department of Computer Science University of Delhi Delhi, India On 5/16/06, Filippe Jabour [EMAIL PROTECTED] wrote: It's more complex then I understood at the

Re: [ns] Multiple simulations in NS

2006-05-16 Thread Tuhin Kanti Sharma
- From: Tuhin Kanti Sharma [EMAIL PROTECTED] To: ns-users@ISI.EDU; [EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 3:33 AM Subject: Re: [ns] Multiple simulations in NS thnx for ure hlp, smehow my requirement is getting met with wat u hav just suggested. I need help just in a couple

[ns] Multiple simulations in NS

2006-05-15 Thread Tuhin Kanti Sharma
Hi, Can we run a tcl simulation multiple times, i.e from start to finish. If yes then how do we do it. Help would be appreciated. Tuhin Department of CS DU

Re: [ns] Multiple simulations in NS

2006-05-15 Thread Filippe Jabour
Use a shell script. /#!/bin/csh/ *set* scriptTcl = dd0601.tcl foreach scen *(*1 2 3 4 5 6 7 8 9 10*)* *echo* ... *echo* Rodada $scen *echo* Comando: ns $scriptTcl $scen time ns $scriptTcl $scen *echo* ... end Rodada e Comando are portuguese words.

Re: [ns] Multiple simulations in NS

2006-05-15 Thread Filippe Jabour
Ignore the * Consider as spaces. Filippe Jabour http://www.gta.ufrj.br/~jabour/ Filippe Jabour escreveu: Use a shell script. /#!/bin/csh/ *set* scriptTcl = dd0601.tcl foreach scen *(*1 2 3 4 5 6 7 8 9 10*)* *echo* ... *echo* Rodada $scen *echo* Comando: ns

Re: [ns] Multiple simulations in NS

2006-05-15 Thread Tuhin Kanti Sharma
thnx a lot for the reply... but i need to specify my requirements I need to run multiple simulations of a tcl script, based on the results wich Im collectin in cc file I need to get the best value for the simulation. Now wat I can do is run the simulation get the results and update variables in

Re: [ns] Multiple simulations in NS

2006-05-15 Thread Tuhin Kanti Sharma
thnx for ure hlp, smehow my requirement is getting met with wat u hav just suggested. I need help just in a couple of more points: 1)/#!/bin/csh/ what is the significance of this? 2) While running the shell script, it gives : ns command not found. Can you please tell me why is it so? I'll be

Re: [ns] Multiple simulations in NS

2006-05-15 Thread Zhou Ya Jin
: [ns] Multiple simulations in NS thnx for ure hlp, smehow my requirement is getting met with wat u hav just suggested. I need help just in a couple of more points: 1)/#!/bin/csh/ what is the significance of this? 2) While running the shell script, it gives : ns command not found. Can you

Re: [ns] Multiple simulations in NS

2006-05-15 Thread Sameer Qazi
Another way is through 'for' loop, but make sure you break up this code (the one to be repeated) as one (or multiple) subroutines ('procs in tcl') written outside the 'for' loop. The code can then be repeatedly called at specific time intervals using $ns at time subroutine or proc from a 'for'