¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 56°Ç
   
netcat (nc) output pipes and redirection
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2010-10-06 (¼ö) 09:39 Á¶È¸ : 5642
±ÛÁÖ¼Ò :
                          

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.