LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 11: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, 03:56 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,273

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
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


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


All times are GMT -5. The time now is 04:34 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration