LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 11-01-2012, 02:04 AM   #1
er_jainamit
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
namtrace-all: not found


Hi everyone,
i am using ubuntu 12.04 and installed ns2.35 in it.Whenever i am running my program i am getting an error mention below.Please help me.Thanx in advance

Program firstexample.tcl

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
}

$ns at 5.0 "finish"
$ns run


OUTPUT

amit@nightrider:~$ ns
% firstexample.tcl
/home/amit/ns2/ns-allinone-2.35/ns-2.35/firstexample.tcl: 3: /home/amit/ns2/ns-allinone-2.35/ns-2.35/firstexample.tcl: namtrace-all: not found
/home/amit/ns2/ns-allinone-2.35/ns-2.35/firstexample.tcl: 4: /home/amit/ns2/ns-allinone-2.35/ns-2.35/firstexample.tcl: proc: not found
/home/amit/ns2/ns-allinone-2.35/ns-2.35/firstexample.tcl: 5: /home/amit/ns2/ns-allinone-2.35/ns-2.35/firstexample.tcl: global: not found
/home/amit/ns2/ns-allinone-2.35/ns-2.35/firstexample.tcl: 6: /home/amit/ns2/ns-allinone-2.35/ns-2.35/firstexample.tcl: flush-trace: not found
/home/amit/ns2/ns-allinone-2.35/ns-2.35/firstexample.tcl: 7: /home/amit/ns2/ns-allinone-2.35/ns-2.35/firstexample.tcl: close: not found
% Cannot connect to existing nam instance. Starting a new one...

nam: Unable to open the file "out.nam.nam"
 
Old 11-01-2012, 05:41 AM   #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: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ.
Quote:
amit@nightrider:~$ ns
% firstexample.tcl
'ns' should be used this way : ns firstexample.tcl
 
  


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
Xorg, no screens found; no devices found (after Virtualbox install) Archytas Linux - General 6 03-06-2013 04:41 PM
404 Not Found The requested URL '/zm' was not found on this server. mickeyboa Ubuntu 8 07-26-2012 12:02 PM
Directory not found; -xzvf not found; Makefile not found RealGomer Linux - Software 4 09-20-2010 11:02 AM
Fedora Core 6 boot No medium found No volume groups found awadhut Linux - Hardware 1 02-22-2007 02:15 AM
PDC 20276 - Promise Fasttrack 133 found but still not found.. FransE Linux - Hardware 3 02-16-2004 08:44 AM


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