LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to execute program in ns2.32 fedora? (https://www.linuxquestions.org/questions/linux-software-2/how-to-execute-program-in-ns2-32-fedora-4175494542/)

shwetaam 02-11-2014 09:38 AM

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

duru1992 02-11-2014 09:53 AM

i am also facing a similar problem. please reply guys !!

knudfl 02-11-2014 10:56 AM

#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

-

shwetaam 02-13-2014 12:33 PM

@knudfl
thanks a lot..program executed successfully:)

palreg 01-03-2017 12:38 AM

Quote:

Originally Posted by knudfl (Post 5115649)
#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


All times are GMT -5. The time now is 12:53 PM.