LinuxQuestions.org
Review your favorite Linux distribution.
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 08-18-2015, 05:37 AM   #1
rc49
LQ Newbie
 
Registered: May 2015
Posts: 25

Rep: Reputation: Disabled
giving path of scenario file in tcl script


i m trying to load scenario file in my tcl script for wireless communication
but when i run my script it gives error"no such file or directory"
it luks as follows:

couldn't read file "../mobility/scene/scen-3-test": no such file or directory
while executing

"source.orig ../mobility/scene/scen-3-test"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source $val(sc)"
(file "m_dsr.tcl" line 115)



i m not able to figure this error...
no changes made in scenerio file(already in ns2 package) i just change instances acc to my script
i tried to give whole path as in ns package but no use,,,please help..

ns2.35
ubuntu 12.04(32bit)
 
Old 08-18-2015, 07:46 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,315

Rep: Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175
Simple : Run your simulation in ns2.35/tcl/ex/.

Then you have the "../mobility/scene/scen-3-test" in the right location.
... See ns2.35/tcl/mobility/scene/scen-3-test
 
  


Reply

Tags
ns2, tcl-ns2, ubuntu 12.04


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
Why the output files (trace file e.g. out.tr) are not same for the same tcl script ? askerwhat Ubuntu 1 06-03-2011 10:46 PM
how to link mobility file with tcl script naren123.k Programming 0 04-26-2011 04:37 AM
rsh <hostname> <script path> giving permission denied error shad.ithbti Linux - Newbie 5 08-31-2009 07:55 AM
use file content as tcl script parameters powah Linux - General 3 07-16-2005 11:10 AM
How to start a Tcl/Tk script by simply invoking the script file itself ? cyu021 Programming 2 10-10-2004 11:00 AM


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