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
mikhaelSenior Sales EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rwenzlaCommented:
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.
0
mikhaelSenior Sales EngineerAuthor Commented:
rwenzla

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

Cheers
0
emikoCommented:
Try 2 \'s    e.g. \\d\\d

The \ is a special character in Unix and sometimes
passing \'s around in shells and scripts can be problematic.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mikhaelSenior Sales EngineerAuthor Commented:
Worked perfectly,thanks. :)

I wish it was mentioned in the README's and HOWTO's though :(
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.