LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-14-2010, 08:30 AM   #1
alinnic1
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 0
where to place my tcl scripts for ns2 to see them ?


Hello all.
I am a newbie linux user.
I have ns2.34 allinone version installed on ubuntu 10.04
I have validated it succesfully.
This is my path.

/home/alin/ns-allinone-2.34/bin:/home/alin/ns-allinone-2.34/tcl8.4.18/unix:/home/alin/ns-allinone-2.34/tk8.4.18/unix

I place tcl scripts in /home/alin/ns-allinone-2.34/bin/
and I try to run them so:

$ns example1.tcl

and I get this output:

couldn't read file "example1.tcl": no such file or directory

What's wrong ?What should I add to my path ?
 
Old 10-14-2010, 10:01 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,049

Rep: Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459
Welcome to LQ. .. .. ..

The tcl scripts can have location anywhere in /home/alin/ ...
E.g. /home/alin/ns2/examples/

The commands are then to be 1) cd /home/alin/ns2/examples/
2) ns example1.tcl

Your used location, /home/alin/ns-allinone-2.34/bin/
is not unusable, but example1.tcl is not a binary,
so I wouldn't recommend it.
Anyway : Please always change directory to the used location.
Or use the full path : 'ns /home/alin/ns2/examples/example1.tcl'
..

Other info : LQ Search , Tag or Keyword = ns2
..
 
Old 10-14-2010, 10:58 AM   #3
alinnic1
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you for your answer.Works.
Live long and prosperous
 
  


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
Attaching an algorithm to tcl script in ns2 raviteja99 Linux - Wireless Networking 2 09-12-2010 07:16 PM
URGENT- Having problems with tcl,ns2 in cygwin ritoban87 Linux - Newbie 2 01-22-2010 07:07 AM
Where do I place startup scripts? trist007 Linux - Newbie 9 08-21-2008 04:59 PM
Can't install NS2 on FC4 - Tcl make eror skyeman Linux - Software 1 08-24-2005 03:17 AM
Shell Scripts + TCL/TK liguorir Linux - Software 0 03-31-2004 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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