make 하면 컴파일이 시작되면서 화면에 컴파일 과정을 뿌려줍니다.
이 과정을 파일로 저장하고 싶습니다.
단 이때 화면에도 출력이 되는것을 보고싶습니다.
make 1> make.txt 이렇게 하면 화면에는 출력이 안되더군요.
읽어주셔서 감사합니다.
man tee
tee 명령어를 사용해 보시죠.
# make | tee result.file
"파일로 저장하면서, 화면에 출력하기" 도 되겠네요. make >make.log; tail -f make.log
---- Let's shut up and code.
파이프로 넘겨야되지 않나요?
make > make.log | tail -f mail.log
sangwoo wrote:"파일로 저장하면서, 화면에 출력하기" 도 되겠네요. make >make.log; tail -f make.log 파이프로 넘겨야되지 않나요? make > make.log | tail -f mail.log
넘겨지는 게 아니라, 그냥 tail -f 를 실행하는 것 같습니다.
저는 emacs 사용합니다.
emacs 띄우고
Alt-x compile
하면 다 나오는데요..
기록을 시작할 때 script 명령실행하고 기록을 끝낼려면 Ctrl+D 터미날에 출력되는 모든 내용 typescript 파일에 저장합니다.
$man script 참조
---------------------------------------- Nothing left after Nirvana.
Warning 이나 error 메시지는 stderr 로 나오니까 make 2> make.log 이렇게 해야 하지 않나요?
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
man tee
man tee
tee 명령어를 사용해 보시죠.# make | tee result
tee 명령어를 사용해 보시죠.
# make | tee result.file
"파일로 저장하면서, 화면에 출력하기" 도 되겠네요.make >
"파일로 저장하면서, 화면에 출력하기" 도 되겠네요.
make >make.log; tail -f make.log
----
Let's shut up and code.
[quote="sangwoo"]"파일로 저장하면서, 화면에 출력하기" 도
파이프로 넘겨야되지 않나요?
make > make.log | tail -f mail.log
[quote="Anonymous"][quote="sangwoo"]"파일로
넘겨지는 게 아니라, 그냥 tail -f 를 실행하는 것 같습니다.
저는 emacs 사용합니다.emacs 띄우고Alt-x
저는 emacs 사용합니다.
emacs 띄우고
Alt-x compile
하면 다 나오는데요..
기록을 시작할 때 script 명령실행하고 기록을 끝낼려면 Ctr
기록을 시작할 때 script 명령실행하고
기록을 끝낼려면 Ctrl+D
터미날에 출력되는 모든 내용 typescript 파일에 저장합니다.
$man script 참조
----------------------------------------
Nothing left after Nirvana.
Warning 이나 error 메시지는 stderr 로 나오니까 ma
Warning 이나 error 메시지는 stderr 로 나오니까
make 2> make.log
이렇게 해야 하지 않나요?
댓글 달기