"Through wvdial, sometimes ppp daemon dies, with various exit codes of 16, 10, 1 etc."
You can try puting this line in /etc/wvdial.conf
Stupid Mode = 1
Stupid Mode tells pppd to ignore minor errors in the connect protocol and continue on anyway.
"I need to write a Java program to start ppp daemon from my Linux box. M program is not executing properly, it just waits at the prompt and after some time i get "java.net.ConnectException: Connection timed out". Is there any way of knowing actually whether ppp daemon has started?"
If stupid mode works with wvdial then you can try passing the stupid mode parameter from your java program to pppd. I don't know how to specify this. You may have to set up stupid mode in one of the pppd files instead of passing it from java.
___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html
Steve Stites