otcl

Path Tcl and Bash

家住魔仙堡 提交于 2019-12-12 03:00:02
问题 i have a problem with path in a tcl file i tried to use source " /tmp/mob.tcl " and this path in bash file : /opt/ns-allinone-2.35/ns-2.35/indep-utils/cmu-scen-gen/setdest/setdest -v 1 -n $n -p 10 -M 64 -t 100 -x 250 -y 250 >> /tmp/mob.tcl but terminal give me this error : couldn't read file " /tmp/mob.tcl ": no such file or directory while executing "source.orig { /tmp/mob.tcl }" someone can help me please 回答1: Learn to believe the error messages you get ;-). couldn't read file " /tmp/mob

How to change the delay of a link in NS2 simulation?

感情迁移 提交于 2019-12-11 05:49:09
问题 I need to run a NS2 simulation that the delay of a link will change during the runtime, and I use following procedure in tcl script: $ns delay $node3 $node4 $delay_time to change the delay in a link between $node3 and $node4. But it only works when it's set before the simulation starts. If I want to change the delay in a certain time, e.g. $ns at 1.0 "$ns delay $node3 $node4 10ms" It doesn't work.So how to change the delay of a link during runtime? Thanks for any help. 回答1: I have been