Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7C11A10A24 for ; Tue, 18 Feb 2014 10:22:54 +0000 (UTC) Received: (qmail 77906 invoked by uid 500); 18 Feb 2014 10:22:53 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 74665 invoked by uid 500); 18 Feb 2014 10:22:36 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 74657 invoked by uid 99); 18 Feb 2014 10:22:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Feb 2014 10:22:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,HTML_OBFUSCATE_05_10,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of diveintotomorrow@gmail.com designates 209.85.214.169 as permitted sender) Received: from [209.85.214.169] (HELO mail-ob0-f169.google.com) (209.85.214.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Feb 2014 10:22:28 +0000 Received: by mail-ob0-f169.google.com with SMTP id wo20so18435525obc.28 for ; Tue, 18 Feb 2014 02:22:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=igwv73VHHYnpUae9B2T4NNHNbRl2PuxQAfjdAzkC9e4=; b=wGaTjvPmpb/p9NfgZx6eXJGlQA5cYwxqYZn9VYhNf5dCYWT2suQ/A36eBR7L5WImE+ PDXODEMMXejClz2V4OvQCsqXhhhVaqHeerpdvFrEckEIWNi0i/vuH9e3H5yG9qRhvgw9 lgBQw2wsjTj8Tn5w7CvDbtiuHlNw0MAnlc4uL7KuUq+YHh4Yuv9RTys+jMiYFuudPNl/ OEUidRK3XJYPC4j95dB9AVGb2wCC2kd8LEX7/ZJv6HBVfobQfz3YMBRrhcO3G5+vwPV1 RZozQ1bHzxUl3PBwn5AWahrBCRP2mwKBphtlXsmZNaHBHWTvcIq06zS/oqAbQ07ILUq3 2sLg== X-Received: by 10.182.122.133 with SMTP id ls5mr1122283obb.52.1392718927130; Tue, 18 Feb 2014 02:22:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.157.225 with HTTP; Tue, 18 Feb 2014 02:21:47 -0800 (PST) From: =?UTF-8?B?5YiY5piO5pWP?= Date: Tue, 18 Feb 2014 18:21:47 +0800 Message-ID: Subject: Why pipeline content to command nc won't work? To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a1134a7e4ec781104f2aba4fd X-Virus-Checked: Checked by ClamAV on apache.org --001a1134a7e4ec781104f2aba4fd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I try to get zookeeper stat from shell by using nc, This works: call nc localhost 2181 first, then type in: *stat*. while echo "stat" | nc localhost 2181 returns Nothing. Any idea why it doesn't work? Thanks ;-) --=20 Best Regards ---------------------- =E5=88=98=E6=98=8E=E6=95=8F | mmLiu --001a1134a7e4ec781104f2aba4fd--