To start ppp daemon (from Linux) through java (PPP connection getting terminated)
"Pashmina Mukhi" <[email protected]> Fri, 23 Jul 2004 14:28:17 +0530
| Newsgroups | gmane.linux.redhat.ppp |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I am starting ppp daemon from Linux, through java. Am using the following:
Process p = r.exec("sudo /usr/sbin/pppd /dev/ttyG0_00 dump debug crtscts
nolock 3.112.8.176:195.0.0.2");
After that i want to fire a URL and retrieve that data. But i get a
"java.net.ConnectException: Connection timed out" when i try to read from
the stream after opening a url connection.
In var/log/messages, I am getting the following:
Jul 23 03:10:41 patrvlxcps01 pppd[10182]: pppd options in effect:
Jul 23 03:10:41 patrvlxcps01 pppd[10182]: debug^I^I# (from command line)
Jul 23 03:10:41 patrvlxcps01 pppd[10182]: dump^I^I# (from command line)
Jul 23 03:10:41 patrvlxcps01 pppd[10182]: noauth^I^I# (from
/etc/ppp/options)
Jul 23 03:10:41 patrvlxcps01 pppd[10182]: /dev/ttyG0_00^I^I# (from command
line)
Jul 23 03:10:41 patrvlxcps01 pppd[10182]: nolock^I^I# (from command line)
Jul 23 03:10:41 patrvlxcps01 pppd[10182]: crtscts^I^I# (from command line)
Jul 23 03:10:41 patrvlxcps01 pppd[10182]: 3.112.8.176:195.0.0.2^I^I# (from
command line)
Jul 23 03:10:41 patrvlxcps01 pppd[10183]: pppd 2.4.1 started by root, uid 0
Jul 23 03:10:41 patrvlxcps01 pppd[10183]: Using interface ppp0
Jul 23 03:10:41 patrvlxcps01 pppd[10183]: Connect: ppp0 <--> /dev/ttyG0_00
Jul 23 03:11:13 patrvlxcps01 pppd[10183]: Hangup (SIGHUP)
Jul 23 03:11:13 patrvlxcps01 pppd[10183]: Modem hangup
Jul 23 03:11:13 patrvlxcps01 pppd[10183]: Connection terminated.
Jul 23 03:11:13 patrvlxcps01 kernel: dgdm: dgdm_tty_hangup(0_00_0):
tty->count wierdness 2
Jul 23 03:11:14 patrvlxcps01 pppd[10183]: Exit.
By the above log, the ppp daemon is dying out and thus am not able to
retrieve data from the stream.
Any idea why this could be happening. Do i need to change some settings?
Thanks,
Pashmina
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 use
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 than
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 this
mail has been forwarded to you without proper authority, please notify the
sender and delete this mail. This email (in whole or in part) is not to be
reproduced or furnished to third parties or made public without the prior
express written permission of the sender.