
Ubuntu日本語フォーラム

ログインしていません。
ubuntu16.04でns2を使っています。
サンプルのtclスクリプトを実行しようとした結果
以下のようなエラーが表示されました。
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
~/ns-allinone-2.34/ns-2.34/myworkspace/tcl$ ns run550.tcl
wrong # args: should be "source fileName"
while executing
"source -encoding utf-8 [file join $TclLibDir clock.tcl]"
(procedure "::tcl::clock::format" line 3)
invoked from within
"clock format [clock seconds] -format {%Y/%m/%d(%a) %p %I:%M:%S}"
invoked from within
"puts $SimT [clock format [clock seconds] -format {%Y/%m/%d(%a) %p %I:%M:%S}]"
(file "run550.tcl" line 49)
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
実行しているプログラミングはサンプルです。
何がエラーにつながっているのか理解できません
すみませんがご教授お願いします。
オフライン
こちらで同様の質問をしています。
https://ja.stackoverflow.com/questions/50399/tcl%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%8C%E5%AE%9F%E8%A1%8C%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93
オフライン