[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
source ~/ns/lib/ns-node.tcl
Hi,
As I want to understand which functions are called by ns during my
simulation, I add some lines in the ~ns/tcl/lib/ns-node.tcl.
I don't want to build ns each time I make a modification
so I source this file in my script in the first line of my script. I
hope like this to override compiled tcl definitions .
Is it a good solution or does it rise any problem ?
This works with other files (ns-hiernode.tcl for example)
When I do this, I have the following error :
#########################################################
missing close-brace
while compiling
"Node instproc add-target-NewMobile {agent port} { ..."
(file
"/crm/spirou/NTT/usr/local/ns/ns-all/ns-2.1b6/tcl/lib/ns-node.tcl" line
816)
invoked from within
"source.orig
/crm/spirou/NTT/usr/local/ns/ns-all/ns-2.1b6/tcl/lib/ns-node.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig $fileName"
(procedure "source" line 12)
invoked from within
"source
/crm/spirou/NTT/usr/local/ns/ns-all/ns-2.1b6/tcl/lib/ns-node.tcl"
(file "test_topogen.tcl" line 1)
##########################################################
Of course When I saw this error I extracted ns-node.tcl
form the tar.gz , thus original ns-node.tcl makes this error. Why this
does this error occur at execution time and not at compilation time ? As
you can see it is the first line of my script.
Thanks,
--
Vera Mickael Stagiaire