From owner-freebsd-questions Fri Jun 4 7:59: 5 1999 Delivered-To: freebsd-questions@freebsd.org Received: from misha.cisco.com (misha.cisco.com [171.69.206.50]) by hub.freebsd.org (Postfix) with ESMTP id 4319614F52 for ; Fri, 4 Jun 1999 07:59:02 -0700 (PDT) (envelope-from mi@misha.cisco.com) Received: (from mi@localhost) by misha.cisco.com (8.9.3/8.9.1) id KAA06987; Fri, 4 Jun 1999 10:59:00 -0400 (EDT) (envelope-from mi) Message-Id: <199906041459.KAA06987@misha.cisco.com> Subject: sio0: minicom works, chat(1) does not :( To: questions@freebsd.org Date: Fri, 4 Jun 1999 10:59:00 -0400 (EDT) Cc: miquels@cistron.nl, walker@clinet.fi Reply-To: mi@aldan.algebra.com From: Mikhail Teterin X-Mailer: ELM [version 2.4ME+ PL52 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello! I'm trying to automate dealings with an MS-DOS box over a serial line with a FreeBSD-3.0 machine. The box' is listening for commands on its com2. DOS commands were: mode com2 baud=9600 parity=n data=8 stop=1 ctty com2 Using minicom I have no problems seeing the DOS prompt in my xterm and issuing any DOS command my heart pleases (except that BS key does not work, but it does not bother me too much). However, my attempts to automate fail: % chat -V -e -v -s "" "echo hello" "hello" < /dev/cuaa0 > /dev/cuaa0 send (echo hello^M) -- write failed: Input/output error Failed The terminal settings are as follows: % stty -a < /dev/cuaa0 speed 9600 baud; 0 rows; 0 columns; lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl -echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo -extproc iflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff -ixany -imaxbel -ignbrk -brkint -inpck -ignpar -parmrk oflags: -opost -onlcr -oxtabs cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = ; eol2 = ; erase = ^?; intr = ^C; kill = ^U; lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W; When minicom is running, the stty's output is a little different: --- plain.stty Fri Jun 4 10:19:58 1999 +++ minicom.stty Fri Jun 4 10:19:47 1999 @@ -5 +5 @@ -iflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff -ixany -imaxbel -ignbrk +iflags: -istrip -icrnl -inlcr -igncr ixon ixoff -ixany -imaxbel ignbrk @@ -8 +8 @@ -cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow +cflags: cread cs8 -parenb -parodd hupcl clocal -cstopb -crtscts -dsrflow @@ -13 +13 @@ - stop = ^S; susp = ^Z; time = 0; werase = ^W; + stop = ^S; susp = ^Z; time = 5; werase = ^W; Should I change anything? Thanks in advance for any clues! -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message