콘솔에 뿌려지는 내용을 콘솔로도 보이고, 그 보이는 것을 모두 파일로 저장하는 방법은 무엇입니까?
감사합니다.
hahaha 란 파일이 주어진 디렉터리에 없다고 합시다.
[root@localhost /root]# ls hahaha >& asdf [root@localhost /root]# more asdf ls: hahaha: 그런 파일이나 디렉토리가 없음
에러메시지도 asdf란 파일로 출력됩니다.
응용하면
./configure >& asdf
정도가 되지 않을까요?
No Pain, No Gain.
tee 를 써보세요.
---http://coolengineer.com
man tee
텍스트 포맷에 대한 자세한 정보
<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]
에러메시지까지 파일로 출력하기..
hahaha 란 파일이 주어진 디렉터리에 없다고 합시다.
[root@localhost /root]# ls hahaha >& asdf
[root@localhost /root]# more asdf
ls: hahaha: 그런 파일이나 디렉토리가 없음
에러메시지도 asdf란 파일로 출력됩니다.
응용하면
./configure >& asdf
정도가 되지 않을까요?
No Pain, No Gain.
tee 를 써보세요.
tee 를 써보세요.
---
http://coolengineer.com
man tee
man tee
댓글 달기