From owner-freebsd-questions Wed Apr 11 21:30:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from www.kpi.com.au (www.kpi.com.au [203.39.132.210]) by hub.freebsd.org (Postfix) with ESMTP id 16CD137B509 for ; Wed, 11 Apr 2001 21:30:34 -0700 (PDT) (envelope-from johnsa@kpi.com.au) Received: from kpi.com.au (localhost.kpi.com.au [127.0.0.1]) by www.kpi.com.au (8.9.3/8.9.3) with ESMTP id OAA27719 for ; Thu, 12 Apr 2001 14:30:04 +1000 (EST) (envelope-from johnsa@kpi.com.au) Message-ID: <3AD52F5E.BDED3F1C@kpi.com.au> Date: Thu, 12 Apr 2001 14:30:22 +1000 From: Andrew Johns Organization: Deloitte Touche Tohmatsu X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: How to:Read directly from serial port to a file Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Apologies for following up my own post. 2 additional things: a) Please CC me (too many subscriptions already) b) The command I've been trying is: # cu -l /dev/cuaa2 -s 1200 > phonelog # but I get: [1] + Suspended (tty output) cu -l /dev/cuaa2 -s 1200 I can do the cu -l ...... manually and then pipe the output using ~| cat - phonelog from within cu, but I neeed to be able to start this from rc.d startup script ---------- Original message below --------------------------------------- Issue: I've got a PC attached to a phone system which emits data about the phone lines in use via a serial line at 1200 baud. What I want is to plug the serial cable into the PC and dump the incoming data directly to a file for later analysis by 3rd party software. I have had this working in the past, but the box has been blown away and I cannot seem to get it going again. cu only seems to want to talk interactively. The moment I background the process it stops (tty output), even though I've directed stdout to a file. All help appreciated. System: 3.3-REL Serial ports: 16550a's x 4 Nothing else is relevant - I've had this working before (maybe not with cu?) Thanks -- aj To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message