in reply to Re^2: perl tk and Device::Modem
in thread perl tk and Device::Modem
People are starting to forget how to use the old phone-line modems. :-)
Instead of using Device::Modem, you can use Device::SerialPort directly. There are some example in the eg directory of Device::SerialPort, and you should be able to do what you want. As a matter of fact the demo7.plx is a Tk script to dial out on a modem
If my memory servers me correctly, I recall that you can send modem dialing commands with shell commands, like
There is a hangup command too, but I can't recall it offhand. So you could rewrite your script to use a more manual method of dialing.echo 'ATH0' > /dev/ttyS0 #go offhook echo 'ATDT123456789' > /dev/ttyS0 # dial
|
|---|