Linux強制output - LinuxVanessa · 2009-06-09Table of ContentsPostCommentsRelated Posts 請問 我run了一個程式,會在console output 一些data。 我想把data output 到 .log 所以下了 ./program XXX > xxx.log 但是這個程式 run到一半會掛掉。 所以連未掛掉之前的data 也都沒有辦法寫到.log 檔案。 請問 有解決辦法嗎? thanks -- LinuxAll CommentsOdelette2009-06-12C/C++有flush()可用Quanna2009-06-16sync might helpAaliyah2009-06-20./program XXX 1>&2 2>log stderr應該會每個char都寫入Related Postsps指令問題第一次連網站時會很慢,之後再連就很正常fedora 9->10 安裝完 開機不能安裝軟體在make時發生問題Google發佈Mac與Linux版Chrome
All Comments