Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Python to Dial a Modem

Status
Not open for further replies.

mtw102

Programmer
Jan 23, 2002
5
0
0
US
I am trying to write a script that will dial into a remote host and log into a PBX in order to print out some information. I have all of the script working except for how to get python to access a modem and dial out. Is there a module that I can get that will access a serial port?

Please Help!!
 
In MS-DOS, you can open the file COMx, where x is 1 through 4, and talk to a serial port. It might work under Windows. In Linux, you could try talking to /dev/modem, but that might depend on your distribution. The /dev/modem device is really a link that points to the serial port where the modem resides. You could try talking directly to that port.

Please note that I haven't tried this myself, but you could give it a shot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top