[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: integrate scripts into ns



> I have a problem with sourcing my individual scripts. I wrote some code
> which I call ns-node1.tcl. As it is mentioned in nsDoc(page 20) , I add
> the following line
> "source ns-node1.tcl" to ~/ns/tcl/lib/ns-lib.tcl. to automatically get
> ns-node1.tcl sourced
> by ns at startup. Unfornatully, it is'nt the case. Could someone tell me
> what's the problem?
> I launched ns on the directory  ~/ns/tcl/lib.

The ns-lib.tcl files are compiled into ns.   If you want to actually add 
your code to NS, you will have to recompile it.

If you are modifiying your script code frequently,  I would recommend 
sourcing it in your simulation script instead of compiling it into NS.


										Jim
> 
> Thank you in advance.
> 
> A.LAMZOUKI
> 
> 
> 
Jim Perreault
[email protected]
http://www.sunyerie.edu/jap