LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error when i execute the nam (https://www.linuxquestions.org/questions/linux-newbie-8/error-when-i-execute-the-nam-4175541340/)

najat 05-01-2015 02:11 PM

Error when i execute the nam
 
1 Attachment(s)
Hello,
Please find attached the code.
The code is correct but when i execute the nam i have this error:


najat@najat-laptop:~/test$ Cannot connect to existing nam instance. Starting a new one...

nam: Unable to open the file "mih.nam.nam"

Can someone help me??
Thanks in advance.

knudfl 05-01-2015 04:44 PM

Very simple : No nam file has been created. See lines 144, 145 :
#set namtrace [open mih.nam w]
#$ns namtrace-all-wireless $namtrace $opt(x) $opt(y)

Just edit line 180 to :
# exec nam mih.nam &
... Then you won't get any messages about any ***.nam


It's easy to trace in the file, just use the 'grep' command for reading :
$ grep -n mih.nam umts.tcl
144:#set namtrace [open mih.nam w]
180:exec nam mih.nam &

-


All times are GMT -5. The time now is 08:48 AM.