PPP library & pppd, chat return codes - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

PPP library & pppd, chat return codes


I have two questions -

1)I have a PPP-on and a PPP dialer script using which I can establish PPP connection to my remote host. I read through the man pages and they talk about being able to get the exit code of the pppd and chat commands. This maybe a simple thing but I am new to Linux and am learning new things every day. Would appreciate it if someone could tell me how exactly to get the exit code of chat and pppd commands in the scripts. I need to return the result of these commands to the calling program.

2) I know I can write shell scripts that can establish PPP connection but are there APIs/libaries available that can be used to establish a PPP connection from within a C function? I am running RedHat Linux 9.0.

Sign In or Register to comment.