set tracefile [open out.tr w]
$ns trace-all $namfile
When I am running the above TCL code this is showing in terminal. I have just started learning TCL so don't know what to do anything this error.
can't read "namfile": no such variable
while executing
"$ns trace-all $namfile"