LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-09-2009, 10:20 AM   #1
azarakhsh
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Problem by ns2.33


Hi
I have a problem when i run a tcl script by ns.
For example when i run ns example.tcl in command line i see this message:
nam:Unable to open file "nam out.nam"
Please help me to solve this problem
 
Old 06-09-2009, 02:56 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
Welcome to LQ.

An 'example-file.tcl' can start this way :
Code:
set ns [new Simulator]
set nf [open out.nam w]
$ns namtrace-all $nf

proc finish {} {
        global ns nf
        $ns flush-trace
        close $nf
        exec nam out.nam &
        exit 0
}
.... and then some coding, nodes etc.
The finishing sequence :
Code:
$ns at 5.0 "finish"

$ns run
About your bug : missing brackets ? or wrong text ?
....
Please use the links and examples in this thread :
http://www.linuxquestions.org/questi...roblem-726993/
The "Template.tcl" is shown in post # 4.
.....
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
.....
 
  


Reply



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
NS2 problem kantu Linux - Networking 0 09-28-2008 12:47 AM
Problem with ns2 ysk Linux - Newbie 3 09-23-2008 01:44 PM
Problem with ns2 vivekr Programming 4 07-22-2006 06:48 AM
problem with NS2 cain_eve Programming 1 04-17-2005 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:10 AM.

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