i got Mytest.tcl for s-mac.. fromm
http://www.isi.edu/ilense/software/smac/ns2_energy.html
but the rror is.....
root@priyanka-Aspire-5745:/usr/local/ns-allinone-2.26/ns-2.26/smacTCL# ./ns-smac smac.tcl
num_nodes is set 2
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
(_o20 cmd line 1)
invoked from within
"_o20 cmd trace-target _o27"
invoked from within
"catch "$self cmd $args" ret"
(procedure "_o20" line 2)
(SplitObject unknown line 2)
invoked from within
"$mac trace-target $rcvT"
(procedure "_o15" line 134)
(Node/MobileNode add-interface line 134)
invoked from within
"$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $inerrProc_ $outerrProc_ $FECProc_"
(procedure "_o3" line 64)
(Simulator create-wireless-node line 64)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 14)
(Simulator node line 14)
invoked from within
"$ns_ node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $opt(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;# disable random motion
}"
(file "smac.tcl" line
thanks for the help!!