답변:
의 타이밍 옵션 중 일부를 사용해 보셨습니까 ncat? 에서 발췌 한 관련 이벤트는 다음과 같습니다 man ncat(1).
타이밍 옵션
These options accept a time parameter. This is specified in seconds by default, though you can append ms, s, m, or h to the value to specify milliseconds, seconds, minutes, or hours. -d time, --delay time (Specify line delay) . Set the delay interval for lines sent. This effectively limits the number of lines that Ncat will send in the specified period. This may be useful for low-bandwidth sites, or have other uses such as coping with annoying iptables --limit options. -i time, --idle-timeout time (Specify idle timeout) . Set a fixed timeout for idle connections. If the idle timeout is reached, the connection is terminated. -w time, --wait time (Specify connect timeout) . Set a fixed timeout for connection attempts.
따라서 당신의 상황에서 당신은 실행할 것 echo 'flush_all' | ncat -i 10s localhost 11211입니다.
ncat옵션을 살펴 보았고--send-only어느 것이 일을하는지 알았 습니다