[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

need help...



hi,

i am going through the tutorial of ns..i wrote script for example1...

.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
}

$ns at 5.0 "finish"

$ns run

when i try to run it by 'ns example1.tcl' , i receive an error.."

<shamid@aphrodite> ns example1.tcl
<shamid@aphrodite> nam: error reading last line of `out.nam'.

can u guide me for this error..

regards..

Hamid