Re: [ns] passing parameters to tcl script

2010-02-25 Thread Sergio Luis O. B. Correia
On Thu, Feb 25, 2010 at 10:26 AM, pedro chaparro wrote: > > hi every one, i have a question about how to check the number of parameters > i pass to the tcl script, i'm using > > if {  $argc != 3} > { > puts "Missing parameters  " > exit 1 > } try putting the opening brace in the same line, as in

[ns] passing parameters to tcl script

2010-02-25 Thread pedro chaparro
hi every one, i have a question about how to check the number of parameters i pass to the tcl script, i'm using if { $argc != 3} { puts "Missing parameters " exit 1 } but it does not work i got this error p...@calvin:/home/pdro7/Desktop/ns-allinone-2.34/ns-2.34# *./ns foreman1.tcl