I am writing a small perl program that takes the serial output from our phone
switch and puts the individual call records into a Postgres database. Everything
works except for the part where I have to open the serial port. I am on RedHat
EL 4 and perl 5.8.5. The serial port is /dev/ttyS0, which I know works from the
OS level.
I tried
open(PORT,"+>/dev/ttyS0") or die "Couldn't open serial port\n";
Try adding $! to the error string to see why it is failing, I assume it is dieing.
but that didn't work. I'm missing something, but I can't quite put my finger on what.
Giff
Conveniently I am trying to get a modem working, which is inconsequential, but I ran across this script earlier today that might prove useful somehow:
http://axion.physics.ubc.ca/modem-chk.html
It is at least an example of how to talk to a serial port....
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>