LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-01-2015, 03:11 PM   #1
najat
Member
 
Registered: Apr 2015
Posts: 58
Blog Entries: 1

Rep: Reputation: Disabled
Error when i execute the nam


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.
Attached Files
File Type: txt umts.tcl.txt (11.1 KB, 20 views)
 
Old 05-01-2015, 05:44 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
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 &

-
 
  


Reply

Tags
nist-mob, ns2, pmip6


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ns: stop: couldn't execute "nam": permission denied while executing "exec nam Niraj Mishra Linux - Newbie 1 11-08-2014 07:57 AM
[SOLVED] nam file does not execute with ns-2.32 sims2801 Linux - Newbie 2 09-10-2014 12:06 AM
error in nam anisabutsi Linux - Newbie 2 05-01-2013 06:07 AM
ns2.32: nam file does not execute nadia_kh Linux - Newbie 3 07-19-2012 12:40 PM
error in nam humairaafzal73 Linux - Software 1 02-20-2012 12:55 PM


All times are GMT -5. The time now is 03:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration