Welcome to LQ.
An 'example-file.tcl' can start this way :
Code:
set ns [new Simulator]
set nf [open out.nam w]
$ns namtrace-all $nf
proc finish {} {
global ns nf
$ns flush-trace
close $nf
exec nam out.nam &
exit 0
}
.... and then some coding, nodes etc.
The finishing sequence :
Code:
$ns at 5.0 "finish"
$ns run
About your bug : missing brackets ? or wrong text ?
....
Please use the links and examples in this thread :
http://www.linuxquestions.org/questi...roblem-726993/
The "Template.tcl" is shown in post # 4.
.....
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
.....