0

使用しようとした Tcl ファイルのパスに問題があります

source  " /tmp/mob.tcl " 

およびbashファイルのこのパス:

/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          

しかし、端末は私にこのエラーを与えます:

couldn't read file " /tmp/mob.tcl ": no such file or directory
    while executing
"source.orig { /tmp/mob.tcl }"

誰かが私を助けてください

4

1 に答える 1

1

表示されるエラー メッセージを信じることを学んでください ;-)。

couldn't read file " /tmp/mob.tcl ": no such file or directory

これは、パスの最初の文字 (および最後の文字) が " " 文字である文字列を送信したためです。

            source  " /tmp/mob.tcl " 

提出してみる

            source  "/tmp/mob.tcl" 

IHTH

于 2014-07-09T17:18:56.230 に答える