LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   (_o22 cmd line 1) error (https://www.linuxquestions.org/questions/linux-newbie-8/_o22-cmd-line-1-error-4175664925/)

cendana 11-26-2019 01:35 AM

(_o22 cmd line 1) error
 
Hi,
I have successfully installed ns-2.35-allinone. I have run a few tcl files in tcl/ex and it working fine. But when I run script.tcl file in /tcl/ex/mdart, it has the following errors.._o22 cmd line1...
I have gone through the similar threads but still couldn't get the solution.
Please help me on how to solve this problem.
Thank you in advance.

num_nodes is set 16

(_o22 cmd line 1)
invoked from within
"_o22 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o22" line 2)
(SplitObject unknown line 2)
invoked from within
"_o22 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o12" line 13)
(Simulator create-wireless-node line 13)
invoked from within
"_o12 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o12" line 23)
(Simulator node line 23)
invoked from within
"$ns node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(n) } {incr i} {
set node($i) [$ns node]
$node($i) random-motion 0 ;# disable random motion
} "

berndbausch 11-26-2019 02:20 AM

Quote:

Originally Posted by cendana (Post 6061908)
But when I run script.tcl file in /tcl/ex/mdart, it has the following errors.._o22 cmd line1...

This doesn't look like an error.
Quote:

num_nodes is set 16

(_o22 cmd line 1)
invoked from within
"_o22 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o22" line 2)
(SplitObject unknown line 2)
invoked from within
"_o22 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o12" line 13)
(Simulator create-wireless-node line 13)
invoked from within
"_o12 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o12" line 23)
(Simulator node line 23)
invoked from within
"$ns node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(n) } {incr i} {
set node($i) [$ns node]
$node($i) random-motion 0 ;# disable random motion
} "
It's not clear to me what the above text is. Can you clarify what it has to do with your problem?

When you post code or command input/output, please use [code] tags to format it. See my signature for instructions how to do this.


All times are GMT -5. The time now is 01:10 AM.