Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, Has anyone tried the nodetac

Status
Not open for further replies.

ruchika

Programmer
Aug 22, 2003
5
US
Hi,

Has anyone tried the nodetach option when running pppd?

I have a ppp-on script that is started by a C function using the system() call. ppp-on runs pppd with nodetach option. As a sreuslt, I see lots of messages on the terminal indicating that the connection was established successfully, but pppd does not return back. And hence the calling program remains stuck. When i kill pppd (Ctrl-C), pppd deamon dies and my calling program gets a return code of 5(which is fine because pppd recd a exit SIGNAL). I want pppd to return after establishing the connection or if it cannot establish the connection. Is there a way of making pppd to return control and the status to the calling program while keeping the PPP connection alive?

I ran the same thing without specifying the nodetach option. In this case, ppp-on script returns immedialetly and i cannot know whether the conenction was established or not.

Any help would be highly appreciated.

Thanks,
Ruchika
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top