LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 02: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, 37 views)
 
Old 05-01-2015, 04:44 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 06:57 AM
[SOLVED] nam file does not execute with ns-2.32 sims2801 Linux - Newbie 2 09-09-2014 11:06 PM
error in nam anisabutsi Linux - Newbie 2 05-01-2013 05:07 AM
ns2.32: nam file does not execute nadia_kh Linux - Newbie 3 07-19-2012 11:40 AM
error in nam humairaafzal73 Linux - Software 1 02-20-2012 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:43 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
Open Source Consulting | Domain Registration