From owner-freebsd-questions@FreeBSD.ORG Wed Apr 27 08:57:38 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BE9C16A4CE for ; Wed, 27 Apr 2005 08:57:38 +0000 (GMT) Received: from smtp-out6.blueyonder.co.uk (smtp-out6.blueyonder.co.uk [195.188.213.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28F4A43D4C for ; Wed, 27 Apr 2005 08:57:37 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [82.41.37.55] ([82.41.37.55]) by smtp-out6.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Wed, 27 Apr 2005 09:58:14 +0100 Message-ID: <426F5400.8050405@dial.pipex.com> Date: Wed, 27 Apr 2005 09:57:36 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7) Gecko/20040627 X-Accept-Language: en, en-us MIME-Version: 1.0 To: shibbsd@spymac.com References: <20050426080555.26F534C05C@webmail2.spymac.net> In-Reply-To: <20050426080555.26F534C05C@webmail2.spymac.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 27 Apr 2005 08:58:14.0858 (UTC) FILETIME=[3F49C2A0:01C54B07] cc: freebsd-questions@freebsd.org Subject: Re: netcat strange behaviour X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 08:57:38 -0000 shibbsd@spymac.com wrote: >I just wanted to connect to a POP3 server, authenticate and grab the STAT >information, so >I issued the following command: > >printf "USER XXX\nPASS XXX\nSTAT\nQUIT\n" | nc -i 1 110 > >And what I got on stdout was: > >+OK >+OK >+OK > > I tried it on my pop server and got +OK +OK +OK +OK 14 15121 +OK Why don't you try the old-fashioned "telnet 110" and type the commands by hand and see what you get. --Alex