LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-17-2013, 03:01 PM   #1
eng_mohamed_sc
Member
 
Registered: Jul 2013
Posts: 49

Rep: Reputation: Disabled
couldn't read file "namtrace-all": no such file or directory


I have problem when starting my new project at ns-2.34
set nf [open out.nam w]
$ns namtrace-all $nf
first command no problem but second one I receive this error

couldn't read file "namtrace-all": no such file or directory

my installed Ns2 is ns-2.34 all in one
ubuntu 10.04
 
Old 08-19-2013, 02:46 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
May be you should upload the complete tcl file ?
Could be some other text in the file is wrong ?

This is "template.tcl"
Code:
# Create a simulator object
set ns [new Simulator]

# Open the nam trace file
set nf [open out.nam w]
$ns namtrace-all $nf

# Define a 'finish' procedure
proc finish {} {
        global ns nf
        $ns flush-trace
	#Close the trace file
        close $nf
	#Execute nam on the trace file
        exec nam out.nam &
        exit 0
}

############################################
#
# Insert your own code for topology creation
# and agent definitions, etc. here
#
############################################

# Call the finish procedure after 5 seconds simulation time
$ns at 5.0 "finish"

# Run the simulation
$ns run
Tcl files can also be attached as name.tcl.txt or name.tcl.bz2.txt :
Attachments, that's the paper clip tool in the 'Advanced Editor'.
Attached Files
File Type: txt template.tcl.txt (619 Bytes, 92 views)
File Type: txt template.tcl.bz2.txt (340 Bytes, 45 views)
 
Old 08-23-2013, 07:54 AM   #3
eng_mohamed_sc
Member
 
Registered: Jul 2013
Posts: 49

Original Poster
Rep: Reputation: Disabled
thanks it is work
 
  


Reply

Tags
template-ns2



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
[SOLVED] Errors executing shell script: "command not found" and "no such file or directory" eko000 Linux - Newbie 1 01-14-2011 07:54 AM
"bad interpreter : no such file or directory" when configure "flex" acer_peri Linux - Software 10 11-10-2010 01:19 AM
ifup: couldn't read interfaces file "/etc/network/interfaces" debian lenny lorimer73 Linux - Networking 1 08-24-2010 03:47 PM
[SOLVED] Exaile crashes with "glib.GError: Couldn't recognise the image file format for file" cantab Arch 2 10-30-2009 06:35 PM
"mkdir: cannot create directory `foo': Read-only file system" on FAT32 maddes Linux - Hardware 1 11-26-2003 06:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:46 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