Link to home
Start Free TrialLog in
Avatar of mikhael
mikhaelFlag for Australia

asked on

Redhat 6 into SCO 5 via PPP/chat

I am using a Linux (RedHat 6) to dial into a SCO UNIX (Openserver 5) and connect via PPP/chat.

Everything is OK except 1 small point. My CHAT script falls over because of the SCO box flushing out the modem responses. This is documented and I need to put in delays into the script:

e.g. ogin: MYUSERNAME assword: MYPASSWORD

becomes

ogin: \d\dMYUSERNAME assword: \d\dMYPASSWORD

However my tail -f var/log/messages tells me that the username being sent is in fact ddMYUSERNAME. For some reason the backslash is being ignored and not acting as an escape character. And of course the required delay is not happening.

Any ideas? Thanks
Avatar of rwenzla
rwenzla

What are you using to edit the script?  If you are using a GUI frontend (like linuxconf) it might be stripping the "\"'s before they are written to the script file.

Find the script (probably in /etc/ppp) and check.  Edit in a text editor if they're not in there.
Avatar of mikhael

ASKER

rwenzla

No am using emacs (not in X), so don't have that problem.

Cheers
ASKER CERTIFIED SOLUTION
Avatar of emiko
emiko

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mikhael

ASKER

Worked perfectly,thanks. :)

I wish it was mentioned in the README's and HOWTO's though :(