路径Tcl和巴什 [英] Path Tcl and Bash

查看:217
本文介绍了路径Tcl和巴什的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个TCL文件路径我试图用一个问题

i have a problem with path in a tcl file i tried to use

source  " /tmp/mob.tcl " 

和在bash文件路径:

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

推荐答案

了解相信的错误信息你 - 。)

Learn to believe the error messages you get ;-).

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

这是因为你已经提交了一个字符串的第一个字母(最后)的路径是一个字符,即

This is because you have submitted a string with the first letter (and the last) of the path being a " " char, i.e.

            source  " /tmp/mob.tcl " 

尝试提交

            source  "/tmp/mob.tcl" 

IHTH

这篇关于路径Tcl和巴什的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆