Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Run a script when PPP is started or stopped' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Run a script when PPP is started or stopped
Authored by: BrianSchott on Jun 22, '02 09:35:10AM

I use a modem to connect with my University server via Internet Connect. After the dialtone is accepted a miniature "Terminal" window appears and waits for me to enter a series of 4 values to validate me as a user. Each of the 4 values is preceded by a distinct prompt. For example, the first prompt ends with " Alias: ". Under system 9 I was able to use a script provided by the University (listed below) to automate this process, but I have not been able to activate the script in OS X.

One of the ways I have tried to accomplish the automation is to follow the example provided by Angus Hardie on Nov 25, 01. I have placed the following text into the file /etc/ppp/ip-up as suggested and have changed the permissions "chmod a+x ip-up". This does not seem to work; no acknowledgement of the script ip-up appears: I still must enter info manually. Do you have any recommendations, please?

(B=)


**********************
First part of Script follows:

!
@ANSWER
@HANGUP
EXIT 0
!
@ORIGINATE
!
CHRDELAY 1
!
@LABEL 10
MATCHCLR
MATCHSTR 1 11 " Alias: "
MATCHREAD 300
NOTE "Connect script couldn't match \34 Alias: \34" 3
JUMP 99
!
@LABEL 11
IFSTR 11 12 "<Guest>"
IFSTR 11 12 ""
PAUSE 1
WRITE "^u\13"
JUMP 13
!
@LABEL 12
ASK 0 "Please enter name: "
WRITE "^*\13"
!
@LABEL 13
MATCHCLR
MATCHSTR 1 14 "Password: "
MATCHREAD 300
NOTE "Connect script couldn't match \34Password: \34" 3
JUMP 99
!



[ Reply to This | # ]