回文章列表
作者prokofieff.bbs@ptt.cc (普羅高菲夫) 看板: linux
標題[問題] 如何兩個程式輸出重疊在一起?
時間批踢踢實業 (2008/03/11 Tue 21:55:16)
假如說我有一個程式a.out會印出一些資料,

然後我用strace追蹤他,執行 strace ./a.out

我要怎麼樣把兩個輸出的東西

依照timestamp的順序,導向到同一個檔案裡面呢?

也就是檔案裡面會出現像這樣交錯的輸出

output of a.out
output of strace
output of a.out
output of a.out
output of strace
output of a.out
..
..
謝謝

--
※ 發信站: 批踢踢實業坊(ptt.cc) 
◆ From: 140.115.52.31
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻