Technical article 125301

CHAT scripts fail to work correctly when dialing into Openserver from a Linux system

OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

Problem

Modem CHAT scripts fail to work correctly when dialing into Openserver from a Linux system. There appears to be some sort of timing problem.

Cause

By default, the getty process answering incoming modem connections will discard initial input received for about 1 second after displaying its prompt. This is to avoid interpreting modem connection noise on the serial line, This has been observed to cause interaction problems with CHAT scripts from Linux systems dialing into Openserver.

Solution

The getty process has an option flag, -n, which will disable its discard behavior at the beginning of a connection. To enable this option, edit both the /etc/inittab and /etc/conf/init.d/sio files and locate the getty entry that corresponds to the device associated with the modem. For example:

Se1A:234:respawn:/etc/getty -t60 tty1A m

The -n option will need to be inserted into this line as such:

Se1A:234:respawn:/etc/getty -n -t60 tty1A m

Be sure to make this change to the /etc/conf/init.d/sio file as well or the modification may be removed during a future kernel re-link.

After making these changes, disable and enable the modem port to
reinitialize getty with the changes. The OpenServer system should now
be ready to accept the incoming  connection from the Linux client
without discarding initial input from the CHAT script.

See also

getty(M)

From the Xinuos technical article database, record 125301. Reproduced with permission. The original is at www.sco.com/ta/125301, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.