I'm trying to invoke chat by calling it in an /etc/ppp/ip-up script so that I can send characters through a serial link after PPP has been established. I get this error, though:

chat[328]: Can't get terminal parameters: Inappropriate ioctl for this device

Any idea what I might be doing wrong? What can I do to send characters through a link that PPP has established?

Thanks for any help you can lend me on this one.