LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-20-2004, 07:03 AM   #1
Pashmina
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Rep: Reputation: 0
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
 
Old 07-29-2004, 04:57 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
To start ppp daemon from Linux Pashmina Linux - Networking 2 07-23-2004 03:47 AM
ppp daemon die cts999 Linux - Newbie 4 08-08-2003 05:57 PM
PPP daemon died unexpectedly mandrake_linux Linux - Networking 2 04-21-2001 05:36 PM
PPP Daemon died unexpectedly mandrake_linux Linux - Newbie 0 04-07-2001 11:28 AM
PPP Daemon died unexpectedly mandrake_linux Linux - Networking 1 04-04-2001 07:30 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration