delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/19/07:44:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <045601c2bfb8$1e0d7000$0201a8c0@sos>
From: "Sergey Okhapkin" <sos AT sokhapkin DOT dyndns DOT org>
To: "Chirag Kantharia" <kantharia AT hathway DOT com>
Cc: <cygwin AT cygwin DOT com>
References: <c4ca10ad8 DOT 10ad8c4ca AT hathway DOT com>
Subject: Re: Serial port access under expect
Date: Sun, 19 Jan 2003 07:41:41 -0500
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

Could you strace the script execution?

Sergey Okhapkin
Somerset, NJ
----- Original Message -----
From: "Chirag Kantharia" <kantharia AT hathway DOT com>
To: "Sergey Okhapkin" <sos AT sokhapkin DOT dyndns DOT org>
Cc: <cygwin AT cygwin DOT com>
Sent: Sunday, January 19, 2003 7:29 AM
Subject: Re: Serial port access under expect


> Hi Sergey,
>
> I am not sure if I understand you. I am not trying to open
> the serial port from two processes simultaneously. I tried
> opening the serial port from the bash prompt, which worked
> and later, I tried from the expect script which didn't work.
> If the expect script is implicitly opening the serial port
> twice, then I'm confused. Does the script mentioned below
> open the serial port twice?
>
> Regards,
>
> chyrag.
>
> ----- Original Message -----
> From: "Sergey Okhapkin" <sos AT sokhapkin DOT dyndns DOT org>
> Date: Sunday, January 19, 2003 5:48 pm
> Subject: Re: Serial port access under expect
> > Don't you try to open a serial port from two processes? You can't
> > do that on
> > Windows, Windows don't allow to share the serial ports.
> <snip>
> > From: "Chirag Kantharia" <kantharia AT hathway DOT com>
> >
> > > I have a simple terminal emulation program, through which I am
> > > able to access an embedded board, through serial port. This works
> > > fine from the bash prompt; but however, if I try to do the same
> > > from within an expect script, the program fails with "Permission
> > > denied" message, for the open() call (to open the serial port).
> > > The expect script snippet is something like the below:
> > >
> > > set timeout 60
> > > spawn tinycom -n -b 9600 /dev/ttyS0
> > > sleep 2
> > > send "\r\r"
> > > expect ">$"
>
>



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019