View Full Version : PPP connect script in OS X?
01-31-2002, 10:58 AM
My server requires a terminal window to log in - in os8 and 9 you could save the connect script and that would automate it. There must be a workaround for this in OS X but I haven't figured it out yet. Any ideas? (The "save connect script" option has disappeared from the PPP options)
01-31-2002, 02:10 PM
Not sure exactly how this would be done (I don't require it myself), but pppd (the daemon actually managing the connection to your PPP server) accepts some form of scripts, as mentionned in man pppd at the very end:
Probably the most common use of pppd is to dial out to an
ISP. This can be done with a command such as
pppd call isp
where the /etc/ppp/peers/isp file is set up by the system
administrator to contain something like this:
ttyS0 19200 crtscts
connect '/usr/sbin/chat -v -f /etc/ppp/chat-isp'
In this example, we are using chat to dial the ISP's modem
and go through any logon sequence required. The
/etc/ppp/chat-isp file contains the script used by chat;
it could for example contain something like this:
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "NO ANSWER"
ABORT "Username/Password Incorrect"
See the chat(8) man page for details of chat scripts.
01-31-2002, 02:41 PM
hmmmm, i wonder if something like this approach could provide any relief or useful info to the 'modem freezes' issue so many others suffer. see:
02-01-2002, 12:41 PM
I posted this question a week or two ago and did not receive any answer. From what has been said, would seem it is possible to use some kind of a connect script but exactly how is the question. I would think the script would have to come from the ISP, wouldn't it? I have the script I used with OS 9. Is there a hidden folder you could place it in to have OS X's PPP call it up once connected? I am a novice to command line stuff so be gentle.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.