There is a program called DWUN (modem dialer daemon) which I believe can be scripted to do this. I think it comes with a command line client. It sounds like you will need a database type file with user names and passwords to feed to the ppp daemon as an option (user or name, and password, I think). The pap-secrets file may be what you need for this. Basically, a shell script calling a chat script is what you are looking for, so a dialer program may not be needed. From my limited knowledge, the difficult part is understanding the conventions of setting the various options, but be sure you understand the "call" ppp option. Sorry, I don't have one or time to write one, but there is a bash scripting guide (abs-guide) on the web -- see chapter 10. See man pppd for a list of ppp options.
|