學習工廠
2008年11月16日 星期日
[Python code] Run commands in shell
import commands
cmd = '
programName
< %s.i' % case # command to run
failure, output = commands.getstatusoutput(cmd)
if failure:
print 'Running the
programName
code failed\n%s\n%s' % (cmd, output)
sys.exit(1)
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
網誌存檔
►
2010
(1)
►
2月
(1)
►
2009
(8)
►
5月
(1)
►
4月
(2)
►
3月
(5)
▼
2008
(13)
►
12月
(4)
▼
11月
(7)
在Windows系統中自動架站的軟體
更改gcc的version
[Python code] 執行shell或program中的commands
[Python code] Run commands in shell
[Python code] Create a subdirectory
Compiling 2dx source in Ubuntu on 11/04/2008
How to uncompress a file with tar?
►
10月
(2)
關於我自己
Po-Lin Holmes Chiu
檢視我的完整簡介
沒有留言:
張貼留言