From owner-freebsd-isp@FreeBSD.ORG Fri Jul 18 09:55:15 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76AD337B401 for ; Fri, 18 Jul 2003 09:55:15 -0700 (PDT) Received: from psknet.com (kennedy.psknet.com [63.171.251.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCA2343F85 for ; Fri, 18 Jul 2003 09:55:14 -0700 (PDT) (envelope-from troy@psknet.com) Received: from dilbert.psknet.com ([63.171.251.35] helo=dilbert) by psknet.com with esmtp (Exim 4.20) id 19dYVl-0000S0-Df for freebsd-isp@freebsd.org; Fri, 18 Jul 2003 12:55:13 -0400 From: "Troy Settle" To: Date: Fri, 18 Jul 2003 12:52:31 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5329 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Thread-Index: AcNNTPq2QI8vR+M6QxeKwp+P16mtGQ== Message-Id: Subject: Reading data from serial port X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2003 16:55:15 -0000 Does anyone have a script (perl or shell) that can read data from a serial port (1200/8n2)? I thought that something as simple as this would work, but it doesn't seem to do the trick: #!/bin/sh cat /dev/ttyd0 | while read line ; do ...; done TIA, -- Troy Settle Pulaski Networks http://www.psknet.com 540.994.4254 ~ 866.477.5638 Pulaski Chamber 2002 Small Business Of The Year