Here's a suggested change to ppp, to provide better support for chat scripts. The main idea is to allow tokens like USER, PASSWD, SERVER and to let factotum hand over the real values, so you can dial completely non-interactively. The server flag does double duty: it lets you store multiple ppp credentials inside factotum and also uses the name of the server as the phone number to dial. Absent the -s flag, it tries to deduce from the name of the chat file or from the telco string. Examples, ppp -b 115200 -f -P -u -M telco.chat -p telco!5552222 ppp -b 115200 -f -P -u -M modem.chat -p /dev/eia1 -s 5552222 ppp -b 115200 -f -P -u -M 5552222.chat -p /dev/eia1 This is lightly tested, so let me know if anything goes wrong.