[ns] Using NAM with NS2? "couldnt execute nam"?

Syed Faraz Hasan Faraz_Hasan-S at email.ulster.ac.uk
Mon Dec 8 06:59:18 PST 2008


Hi all,

I have used two sample programs for executing the traces on NAM using the ns2.33. All goes well until...

exec nam out.nam & command is executed, from the following FINISH function.

proc finish {} {
        global ns nam_file
        $ns flush-trace
        close $nam_file
        exec nam out.nam &
        exit 0
}

The error message is
ns: finish: could not execute "nam": no such file or directory
while executing
"exec nam out.nam &" (procedure FINISH line 5)
invoked from within
"finish"

I am using NAM 1.13, the nam executes without any problem when I type
%./nam
(on ns2 prompt)

I have no idea how to resolve this. Can some one help me please?

Faraz



More information about the Ns-users mailing list