LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Help to start PPP daemon (from linux) through Java (https://www.linuxquestions.org/questions/programming-9/help-to-start-ppp-daemon-from-linux-through-java-207364/)

Pashmina 07-20-2004 07:03 AM

Help to start PPP daemon (from linux) through Java
 
Hi,

Our application requirement is to start PPP daemon (from linux) through java code, using Runtime.exec() (or any other method) and fire an HTTP URL to some devices (called controllers) and get the required data.
We are facing a “java.net.ConnectException: Connection timed out”, while executing the program. This error is coming at the line where we are getting an input stream from the URL Connection.

I Want to know the exact mechanism of starting ppp daemon (parameters to form the string). I am using
Process p = r.exec("/usr/sbin/pppd " +portName + " 57600");
Where portName are the ports (ttyG0_00 to ttyG0_04) that I can access.

There is no problem connecting to the controller, via the modems, since previously we were using wvdial to dial to the controllers and retrieve the data. Presently have to do the same through Java code.

Any help will be appreciated!
Thanks & Regards,
Pashmina

Mara 07-29-2004 04:57 PM

Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.


All times are GMT -5. The time now is 04:51 PM.