Re: [pygtk] Yet another stupid question



On Thu, 4 May 2000, Hassan Aurag wrote:

>  Hi,
> 
>  When you want to test whether /dev/dsp is properly configured you just 
> "cat somewave > /dev/dsp"
> 
>  Now what do I do if I want to test a /dev/ttyS(0-3). I tried to cat 
> AT and read if there is an OK answer, but it doesn't seem to work this 
> way.
> 
>  Even though this is not strictly gnome related, I am writing this for 
> gnome. And no wvdial won't do because it tries to configure everything 
> while all I need is to test the "comm port" for an OK.

Have you taken a look in the Serial-Programming howto?  You can probably
work out how to apply it to python using the python library docs (it looks
like you want to use the os, termios and TERMIOS modules).

> 
>  Thanks
>  

James.

-- 
Email: james@daa.com.au
WWW:   http://www.daa.com.au/~james/






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]