If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):
From - Sat Apr 10 06:57:07 1999 Xref: world comp.unix.sco.misc:93776 Path: world!blanket.mitre.org!newsfeed.berkeley.edu!news.msfc.nasa.gov!info.usuhs.mil!uky.edu!xenitec!hobbes.caldera.com!evanh From: evanh@sco.COM (Evan Hunt) Newsgroups: comp.unix.sco.misc Subject: Re: Manual dial-up PPP Date: 9 Apr 1999 22:12:08 GMT Organization: The Santa Cruz Operation, Inc. Lines: 63 Distribution: world Message-ID: <7eltvo$sla$1@hobbes.caldera.com> References: <7eh97e$d81$4@towncrier.cc.monash.edu.au> <7ej121$kui$1@hobbes.caldera.com> <7ejram$m7t$3@towncrier.cc.monash.edu.au> NNTP-Posting-Host: mammoth.caldera.com Cc: X-Mozilla-Status: 8011 Don't blame me, I voted for K.Lentin@cs.monash.edu.au. >Why leave my private passwords on my employer's machine? > >Why waste phone calls when a perfectly good serial link exists on which to >run ppp. > >[...] >We paid over $10,000 for this operating system and >it's pppd is either so stupid or so insane that it can't do something as >simple as start up and talk to a serial port? Either I'm wrong or the world >is very stuffed.
I didn't say pppd couldn't do it, just that I didn't understand
why you wanted it to. It's designed to bring the link up silently
when you request IP connectivity; I regard that as a good, useful
design. Wanting to manually dial the phone and type your password
every time seems like a hassle, a feature few people would desire.
The fact that you're the first person to ask for this feature in the
three years I've been responsible for MSTPPP on SCO platforms, suggests
that I may have been correct in that evaluation. :)
I can think of two ways to do this. Here's the simpler one: Set
up your modem so it doesn't hang up when it gets an EOF. I forget
how to do that, but there's an AT command sequence that allows it--
perhaps someone else could help out here?
Create a script called "startppp" on the remote side that runs pppd
for you with all the necessary options. Configure MSTPPP on the local
side with no phone number, the specific name of the serial port you'll
be using, and a chat script that just calls "startppp"--something like
this:
1.2.3.4 Any tty1A 115200 N/A "" "" "" startppp
When you want to start up a PPP link, you use kermit to connect to
your modem and dial the phone. Without logging out or entering
"ATH", quit from kermit. The modem should remain connected. Run
pppd with either the "dedicated" or "auto up" option, on that same
serial port. PPP should treat the modem as if it were a fixed serial
link--connect, run "startppp", negotiate with the remote PPP daemon,
and establish a link, without bothering to dial.
I've never tested this, but I can't think why it wouldn't work.
Here's the more complicated way: Write a dialer program, based on
atdialer.c in /usr/lib/uucp, which dials the modem for you. When it
connects, your program should pop up a terminal window so that you can
log in. AFter you've done so, you can close the window, and then your
dialer program would pass control of the terminal back to the calling
process, just as atdialer already does.
Put your new dialer program into /usr/lib/uucp, and put its name
into the first field of /usr/lib/mstppp/Devices. MSTPPP will then
call your program whenever it wants to dial the phone, so you'll get
an opportunity to type your password. The Systems file should look
very much like the other one, except with "ACU" instead of "tty1A".
--
Evan Hunt - evanh at sco dot com

/Bofcusm/28.html copyright 1997-2004 (various authors) All Rights Reserved
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
Click here to add your comments
Don't miss responses! Subscribe to Comments by RSS or by Email
Click here to add your comments
If you want a picture to show with your comment, go get a Gravatar