看板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 )