|
|
|
|
|

월간 인기 게시물

게시물 57건
   
netcat (nc) output pipes and redirection
글쓴이 : 최고관리자 날짜 : 2010-10-06 (수) 09:39 조회 : 6313
글주소 :
                          

netcat 을 이용해서 서비스체크 스크립트를 작성하려는중에 보니깐... pipe 적용이 안되는것이다...
netcat은 표준에러출력값을 사용하기 때문에 아래와 같이 사용하면 된다.

netcat is writing to stderr, so redirect stderr into stdout like this:
Code:
$ nc -z -v -w 1 127.0.0.1 1-1000 2>&1 | grep -v '?'


stderr redirection 추가설명
http://revoman.tistory.com/entry/stderr-redirection

이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.