Declarent has asked for the wisdom of the Perl Monks concerning the following question:

Okay, I want to dial a modem. Pretty simple. Here's my code:
#!/usr/local/bin/perl # Modem test use Device::SerialPort; $PortName="/dev/ttyS1"; $modem=new Device::SerialPort ($PortName); print "Modem Test...\n"; $modem->error_msg(ON); $modem->baudrate(115200); $modem->parity("none"); $modem->databits(8); $modem->stopbits(1); $modem->are_match("BUSY","CONNECT","OK","NO DIALTONE","ERROR","RING", "NO CARRIER","NO ANSWER"); #$modem->write("ATZ\r") || die "Could Not Reset\n"; $number="8885555555"; $modem->read_const_time(30000); $modem->write("ATDT$number\n\r") || die "Could Not Dial\n"; sleep 5; $modem->write("ATH\r") || die "Could Not Dial\n";
Upon running it, I get this:

Device::Serial could not find ioctl definitions! disabling ioctl methods - constants not found

Ugh. This is Redhat 7.3. I've already run h2ph, and I do have asm/termios.ph. Anyone have any ideas? Or even better, some reliable way that I can send stuff to the modem without this module? BTW, notice that I don't ever read from the serial port, I just need to dial the number, send a string, and hang up.

As always, thanks.

Declarent

Edit by tye, add READMORE