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
|