[ns] running a tcl and bashrc file
A. Muh. Dzaky Raditya Nasywan
dzaky.raven at gmail.com
Fri Jun 3 02:59:41 PDT 2005
What type of Unix/Linux are you using ?
1. Your simulation tcl script doesn't have to be in the same directory with
the NS installation directory.
2. If you have add the Installation path and the library path of your NS
installation, to run NS just as simple as this : ns <yourTCLscript>.
But if you don't add or you make a mistake in exporting the installation
path of your NS, then you must run your simulation within your NS
installation directory. The command then goes like this : ./ns
I'm using NS-2.28 on FreeBSD 5.4 and this is what i add to my shell
environment (csh shell) :
* set path=($path /usr/NetSim/ns2/bin)
* set path=($path /usr/NetSim/ns2/tcl8.4.5/unix)
* set path=($path /usr/NetSim/ns2/tk8.4.5/unix)
* set LD_LIBRARY_PATH=/usr/NetSim/ns2/otcl-1.9:/usr/NetSim/ns2/lib
* set TCL_LIBRARY=/usr/NetSim/ns2/tcl8.4.5/library
that's what i add to my .cshrc file.
I'm sorry for my english, and i hope that help you
On 6/3/05, Ergün <ergunehm at yahoo.com> wrote:
> 1)While running a script file ,for example
> wlan1.tcl,is it important to be in the same directory
> with the example exists?
> 2)before running a tcl,do we have to get in the
> directory which ns.exe existed in.
> Or what are the steps to do that?
> 3)How to update a bashrc file?Open bashrc file,add the
> export prompts,and lastly save it?I did that but
> environment variables have not been updated.
> Send instant messages to your online friends http://uk.messenger.yahoo.com
If You All See Me, then I've Been A Big Boy.
I Love My Big Daddy, Rick Raven.
More information about the Ns-users