Help to start PPP daemon (from linux) through Java
"Pashmina Mukhi" <[email protected]> Tue, 20 Jul 2004 17:54:55 +0530
| Newsgroups | gmane.linux.redhat.ppp |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Our application requirement is to start PPP daemon (from linux) through j=
ava
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 =93java.net.ConnectException: Connection timed out=94, wh=
ile
executing the program. This error is coming at the line where we are gett=
ing
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 =3D 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 t=
he
data. Presently have to do the same through Java code.
Any help will be appreciated!
Thanks & Regards,
Thanks & Regards,
Pashmina Mukhi
Software Engineer
GE Speciality Materials
Patni Computer Systems
TTC-Mahape.Navi Mumbai.
Tel : 022-27611090 Extn. 1260
<http://www.patni.com>
World-Wide Partnerships. World-Class Solutions.
Disclaimer: This e-mail message along with attachment, contain Patni GE
Confidential, proprietary & legally privileged information for the sole u=
se
of the person or entity to whom this message was originally addressed.
Anyreview, e-transmission dissemination or other use of or taking of any
action in reliance upon this information by persons or entities other tha=
n
the intended recipient is prohibited. If you have received this e-mail in
error kindly delete this e-mail from your records. If it appears that thi=
s
mail has been forwarded to you without proper authority, please notify th=
e
sender and delete this mail. This email (in whole or in part) is not to b=
e
reproduced or furnished to third parties or made public without the prior
express written permission of the sender.