看板Programming
标 题Re: [问题] 请问一个tcl的问题
发信站元智大学风之塔 (Thu Jun 22 06:48:06 2006)
转信站ptt!ctu-reader!ctu-gate!news.nctu!news.ncu!news.yzu!bbs.yzu
※ 引述《[email protected] (打我ㄚ笨蛋)》之铭言:
> 就是我在tcl程式中有用exec去执行linux command.
> 但是command的执行过程并不会秀在萤幕上, 需要加什麽参数让
> command的执行过程秀在萤幕上??
I ran a tclsh to test what you said.
> tclsh
% exec ls
a.out
src
tmp
% set r [exec ls]
a.out
src
tmp
% echo $r
a.out
src
tmp
It looks like work fine for me. So, I am not sure why you cannot do the
same thing.
--
Gary W. Lee
URL:
http://www.dev.idv.tw:8080/
Blog:
http://garywlee.blogspot.com/
A web site about C/C++, Tcl, Python, wxWidgets, UNIX/Linux, Windows ..., etc.
--
※ Origin: 元智大学 风之塔 <bbs.yzu.edu.tw>
※ From : adsl-69-232-229-75.dsl.pltn13.pacbell.net
※ X-Info: Re: [问题] 请问一个tcl的问题
※ X-Sign: 129JJ56bkW8h7PFYWN92 (06/06/22 6:48:06 )