윈도우 화면과 파일에 동시에 출력하기

윈도우 화면과 파일에 동시에 출력하기
Tee-Object

1 방법: powershell[ | ]

powershell에서 명령어 사용.

명령어
명령어 | Tee-Object -file 파일명
실행예시
PS C:\Users\zetawiki> tcping -d -t 135.79.246.80 8000 | Tee-Object -file c:\tcping.txt

** Pinging continuously.  Press control-c to stop **

2013:04:12 01:15:32 Probing 135.79.246.80:8000/tcp - Port is open - time=2.477ms
2013:04:12 01:15:33 Probing 135.79.246.80:8000/tcp - Port is open - time=2.483ms
... (생략)
→ 화면에 출력되고 파일에도 기록된다.

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}