Академический Документы
Профессиональный Документы
Культура Документы
LinuxSoftwareThisforumisforSoftwareissues.
Havingaprobleminstallinganewprogram?Wanttoknowwhichapplicationisbestforthejob?Postyour questioninthisforum. Notices
WelcometoLinuxQuestions.org,afriendlyandactiveLinuxCommunity. YouarecurrentlyviewingLQasaguest.Byjoiningourcommunityyouwillhavetheability toposttopics,receiveournewsletter,usetheadvancedsearch,subscribetothreadsand accessmanyotherspecialfeatures.Registrationisquick,simpleandabsolutelyfree.Join ourcommunitytoday! Notethatregisteredmembersseefewerads,andContentLinkiscompletelydisabled onceyoulogin. AreyounewtoLinuxQuestions.org?Visitthefollowinglinks: SiteHowto|SiteFAQ|Sitemap|RegisterNow Ifyouhaveanyproblemswiththeregistrationprocessoryouraccountlogin,pleasecontact us.Ifyouneedtoresetyourpassword,clickhere. Havingaproblemloggingin?PleasevisitthispagetoclearallLQrelatedcookies.
LinuxForums AndroidForum Search LQTags LinuxHCL LinuxTutorials LQJobMarketplace LinuxWiki DistroReviews BookReviews DownloadLinux SocialGroups LQBlogs Home (Con't)
10262010,07:54AM
LinkBack
SearchthisThread #1
ElijahJ
LQNewbie Registered:Oct2010 Posts:1 Rep:
ns2.34problemexecuting'nam'onubuntu9.10
linuxquestions.org//ns-2-34-problem-executing-nam-on-ubuntu-9-10-a-840509/
1/5
4/14/12
ns:finish:couldn'texecute"nam":nosuchfileordirectory Sponsored while UdpIp NetworkProtocols InternetProtocol PacketSniffer UDPPackets PacketAnalyzer Tcp/ipProtocolSuite [Logintogetridofthisadvertisement] executing "execnamout.nam&" (procedure"finish"line7) invokedfromwithin "finish" HereisthecodeItriedtorun(forreference): #Createasimulatorobject setns[newSimulator] #Definedifferentcolorsfordataflows(forNAM) $nscolor1Blue $nscolor2Red #OpentheNAMtracefile setnf[openout.namw] $nsnamtraceall$nf #Definea'finish'procedure procfinish{}{ globalnsnf $nsflushtrace #ClosetheNAMtracefile close$nf #ExecuteNAMonthetracefile execnamout.nam& exit0 } #Createfournodes setn0[$nsnode] setn1[$nsnode] setn2[$nsnode] setn3[$nsnode] #Createlinksbetweenthenodes $nsduplexlink$n0$n22Mb10msDropTail $nsduplexlink$n1$n22Mb10msDropTail $nsduplexlink$n2$n31.7Mb20msDropTail #SetQueueSizeoflink(n2n3)to10 $nsqueuelimit$n2$n310 #Givenodeposition(forNAM) $nsduplexlinkop$n0$n2orientrightdown $nsduplexlinkop$n1$n2orientrightup $nsduplexlinkop$n2$n3orientright #Monitorthequeueforlink(n2n3).(forNAM)
MyLQ
Login Register
WriteforLQ
linuxquestions.org//ns-2-34-problem-executing-nam-on-ubuntu-9-10-a-840509/
2/5
4/14/12
$nsduplexlinkop$n2$n3queuePos0.5 #SetupaTCPconnection settcp[newAgent/TCP] $tcpsetclass_2 $nsattachagent$n0$tcp setsink[newAgent/TCPSink] $nsattachagent$n3$sink $nsconnect$tcp$sink $tcpsetfid_1 #SetupaFTPoverTCPconnection setftp[newApplication/FTP] $ftpattachagent$tcp $ftpsettype_FTP #SetupaUDPconnection setudp[newAgent/UDP] $nsattachagent$n1$udp setnull[newAgent/Null] $nsattachagent$n3$null $nsconnect$udp$null $udpsetfid_2 #SetupaCBRoverUDPconnection setcbr[newApplication/Traffic/CBR] $cbrattachagent$udp $cbrsettype_CBR $cbrsetpacket_size_1000 $cbrsetrate_1mb $cbrsetrandom_false #ScheduleeventsfortheCBRandFTPagents $nsat0.1"$cbrstart" $nsat1.0"$ftpstart" $nsat4.0"$ftpstop" $nsat4.5"$cbrstop" #Detachtcpandsinkagents(notreallynecessary) $nsat4.5"$nsdetachagent$n0$tcp$nsdetachagent $n3$sink" #Callthefinishprocedureafter5secondsofsimulationtime $nsat5.0"finish" #PrintCBRpacketsizeandinterval puts"CBRpacketsize=[$cbrsetpacket_size_]" puts"CBRinterval=[$cbrsetinterval_]" #Runthesimulation nsrun BythewayIgoogledandgotsomesuggestionslike:adding 'nam'directorytoenvironment.Ididthisasfollowbutit didn'twork: Iadded: exportPATH=$PATH:/home/elias/nsallinone2.34/nam1.14 to/etc/profile(>sudogedit/etc/profile)
LasteditedbyElijahJ10262010at08:02AM.Reason:Additional necessaryinformationaddedtotheend
LatestThreads LQNews
Twitter:@linuxquestions identi.ca:@linuxquestions Facebook:@linuxquestions
11192010,01:26AM #2
knudfl
LQ5kClub Registered:Jan2008 Location:Copenhagen,DK Distribution:pclos2010.12,
linuxquestions.org//ns-2-34-problem-executing-nam-on-ubuntu-9-10-a-840509/
3/5
4/14/12
04102012,05:32AM #3 Errorwhenexecutingatclfileinns2.29
yotta15
LQNewbie Registered:Mar2012 Posts:3 Rep:
Helloknudfl, IinstalledNs2.29withNistmobilityPackageinubuntu9.10. the./installand./validateweresuccessful. ButwhenIwanttotestanexample(nsexample1a.tcl)Igot thesameerrorlikeElijahJ ns:finish:couldn'texecute"nam":nosuchfileordirectory whileexecuting "execnamout.nam&" (procedure"finish"line7) invokedfromwithin "finish" Itriedwhatyousaidbutitdoesn'twork!!Itseemslikenam isnotinstalledorwhat? root@charifalaptop:~/Bureau/Install2/nsallinone2.29/nam 1.11#makeinstall /usr/bin/installcm555obingbinnam/usr/local/bin /usr/bin/install:impossibled'valuernam:Aucunfichierou dossierdecetype make:***[install]Erreur1 Canyouhelpmeplz, thanksalot,
04102012,05:57AM #4
knudfl
LQ5kClub Registered:Jan2008 Location:Copenhagen,DK Distribution:pclos2010.12, Slack1337DebSqueeze,+50+other LinuxOS,fortestonly. Posts:8,998 Rep:
linuxquestions.org//ns-2-34-problem-executing-nam-on-ubuntu-9-10-a-840509/
4/5
4/14/12
PostingRules Youmaynotpostnewthreads Youmaynotpostreplies Youmaynotpostattachments Youmaynotedityourposts BBcodeisOn SmiliesareOn [IMG]codeisOff HTMLcodeisOff TrackbacksareOff PingbacksareOn RefbacksareOff ForumRules
SimilarThreads
Thread probleminrunningnam1.11ofns allinone2.29 ThreadStarter rishabhk Forum LinuxNewbie LinuxNewbie LinuxSoftware LinuxNetworking Replies 5 6 5 4 LastPost 0317201105:31 AM 1015201007:44 AM 0926201006:49 AM 0601201007:20 PM 0203200710:38 PM
LinuxGeneral
linuxquestions.org//ns-2-34-problem-executing-nam-on-ubuntu-9-10-a-840509/
5/5