i m running file following tcl script but terminal shows nothing no error no nam file nothing
whats wrong with this script??????
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
}
for {set i 0} {$i < 7} {incr $i} {
set n($i) [$ns node]
}
for {set i 0} {$i < 7} {incr $i} {
$ns duplex-link n($i) n([expr ($i+1)%7]) 1mb 10ms dropTail
$ns at 5.0 "finish"
$ns run
i write ns example3.tcl on terminal but terminal shows nothing even after waiting for long. when choose to close terminal it shows msg something running want to kill terminal