瀏覽代碼

tee -a at all outputs

Paul Klumpp 12 年之前
父節點
當前提交
562e389321
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      startcimsqwbot.sh

+ 2 - 2
startcimsqwbot.sh

@@ -20,9 +20,9 @@ while [ 1 ]; do
 	qmake
 	make
 
-	echo started at $(date) >> runlog.log
+	echo "started at $(date)" | tee -a runlog.log
 	LD_LIBRARY_PATH="$LIBPATH" stdbuf -oL ./cimsqwbot | tee -a runlog.log
-	echo crashed at $(date) - lol, we never crash. >> runlog.log
+	echo "crashed at $(date) - lol, we never crash." | tee -a runlog.log
 
 	sleep 3
 done