From owner-freebsd-questions@FreeBSD.ORG Thu Apr 28 14:58:56 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 7956A16A4CF for ; Thu, 28 Apr 2005 14:58:56 +0000 (GMT) Received: from smtp-out2.blueyonder.co.uk (smtp-out2.blueyonder.co.uk [195.188.213.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03F9B43D5E for ; Thu, 28 Apr 2005 14:58:55 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [82.41.37.55] ([82.41.37.55]) by smtp-out2.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Thu, 28 Apr 2005 15:59:33 +0100 Message-ID: <4270FA2E.7020706@dial.pipex.com> Date: Thu, 28 Apr 2005 15:58:54 +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: <20050427163029.31F1143D55@mx1.FreeBSD.org> In-Reply-To: <20050427163029.31F1143D55@mx1.FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 28 Apr 2005 14:59:33.0468 (UTC) FILETIME=[E328E1C0:01C54C02] 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: Thu, 28 Apr 2005 14:58:56 -0000 shibbsd@spymac.com wrote: >My netcat is the one from the official FreeBSD 5.4-RELEASE s the system here now to check the exact version; I'll check it and post it >to the maillist a.s.a.p. (or look in web-cvs). > >As of telnet, it runs o.k., but I wanted to use netcat in a shell script... :( >Besides, that is what netcat is designed for, is it not? > >PS. sorry, as of 5.4-RELEASE I meant 5.4-RC2 > > Try pkg_info -I netcat\* Regardless of whether it is up-to-date or not you should try remaking it. If it's not up-to-date then you should update it first. The handbook will tell you how. Try nc reading from stdin nc -i 1 localhost 110 and type the commands just like to telnet. Does that work? If it still doesn't work then there may be a bug in the port on 5.4 and you might try reporting it. Also, there seems to be a gnetcat port which is a rewrite of netcat. Try that. --Alex