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 02-11-2014, 10:38 AM   #1
shwetaam
LQ Newbie
 
Registered: Feb 2014
Posts: 9

Rep: Reputation: Disabled
How to execute program in ns2.32 fedora?


guys I have installed fedora on my system. I am not getting how to run a program of ns2.

I have ns2 2.32 and in that folder I have made another folder -PROGRAMS where I have saved programs by .tcl and .nam extensions.

whenever I try to run a program "wireless1.tcl" in terminal i get this-
[root@home ~]# ns wireless1.tcl
couldn't read file "wireless1.tcl": no such file or directory

whenever I try to run a program with NAM in terminal I get this-
[root@home ~]# nam wireless1
 
Old 02-11-2014, 10:53 AM   #2
duru1992
LQ Newbie
 
Registered: Oct 2013
Posts: 1

Rep: Reputation: Disabled
i am also facing a similar problem. please reply guys !!
 
Old 02-11-2014, 11:56 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,321

Rep: Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581
#1, @shwetaam : Welcome to LQ.
Quote:
[root@home ~]# ns wireless1.tcl
The first command is # exit
.. I.e. you are not supposed to do any ns2 commands as root !
( Except # make install ).

Quote:
couldn't read file "wireless1.tcl": no such file or directory
If you think the file really is present, then do the command $ pwd
.. to decide your location.

To get to your folder, please do $ cd ns-allinone-2.32/ns-2.32/programs/
.. or wherever your "programs/" are located.
Then you can try $ ns wireless1.tcl

-
 
Old 02-13-2014, 01:33 PM   #4
shwetaam
LQ Newbie
 
Registered: Feb 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Smile

@knudfl
thanks a lot..program executed successfully
 
Old 01-03-2017, 01:38 AM   #5
palreg
LQ Newbie
 
Registered: Jul 2016
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
#1, @shwetaam : Welcome to LQ.

The first command is # exit
.. I.e. you are not supposed to do any ns2 commands as root !
( Except # make install ).


If you think the file really is present, then do the command $ pwd
.. to decide your location.

To get to your folder, please do $ cd ns-allinone-2.32/ns-2.32/programs/
.. or wherever your "programs/" are located.
Then you can try $ ns wireless1.tcl

-
I am at the right path....but yet not able to run an tcl file...i am trying in the ex folder in tcl folder...what could be the problem
 
  


Reply

Tags
ns2


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.32: nam file does not execute nadia_kh Linux - Newbie 3 07-19-2012 12:40 PM
TraNSv1.2 is unable to execute NS2 nadia_kh Linux - Newbie 2 07-16-2012 05:42 PM
how to execute syn flood in ns2 rashmi.naveen Linux - Newbie 1 12-30-2011 06:36 PM
C function to execute a program and return the output of the program ryan.n Programming 4 08-14-2004 11:11 PM

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

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