Hi all,
As you know, we use "ns cbrgen.tcl [-type cbr|tcp] [-nn nodes] [-seed seed]
[-mc connections][-rate rate]" and "./setdest [-n num_of_nodes] [-p pausetime]
[-s maxspeed] [-t simtime] \ [-x maxx] [-y maxy] > [outdir/movement-file]" to
generate Traffic Model and Mobility Model respectively in NS2 (in my example:
"cbr-50-10-2" and "scene-50-0-20-100-500-500" files). After that to use them,
we simply can use "source" command in TCL script (in my example: "adhoc.tcl").
I have implemented a routing protocol called ADIAN. When I try to use "source"
command in the TCL file I encounter the following error:
"[EMAIL PROTECTED] comparison [1:58] ns adhoc.tcl ADIAN cbr-50-10-2
scene-50-0-20-100-500-500 > log.txt
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
couldn't read file "cbr-50-10-2": too many open files
while executing
"source.orig cbr-50-10-2"
("uplevel" body line 1)
invoked from within
"uplevel source.orig [list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source $opt(cp)"
(file "adhoc.tcl" line 83)"
However, when I just use the content of the traffic and mobility model scripts
(i.e. "cbr-50-10-2" and "scene-50-0-20-100-500-500") in my main script (i.e.
"adhoc.tcl")everything is ok. Does everyone have any idea?
Thanks in advance!
--
Best Regards,
Saeed Shahbazi
------- End of Forwarded Message -------
--
Best Regards,
Saeed Shahbazi