physical hardware accesss

Grant Edwards ge at nowhere.none
Thu Jun 8 17:09:32 EDT 2000


In article <393f4dd2$0$2877 at wodc7nh6.news.uu.net>, Blu Dragoon wrote:
>If I wanted to would be able to probe a serial, parallel, or USB port
>with python.

>Open(/dev/cua1)
>Write(/dev/cua1)

How about:

 fd = os.open("/dev/cua1")
 os.write(fd,buffer)

-- 
Grant Edwards                   grante             Yow!  ... Um...Um...
                                  at               
                               visi.com            



More information about the Python-list mailing list