Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Running PPPD daemon: (6 Items)
   
Running PPPD daemon  
Hi 

RIght now i am testing PPP communication between two PC'S by doing 

pppd /dev/ser1 115200 ip1:ip2 on command line ..or else keep the same statement in string and call system(string) ..so 
that affect is same.

I want to know other approcahes of enabling PPPd Other than from command line and system command.

Thanks
Ravi
Re: Running PPPD daemon  
On Thu, Apr 23, 2009 at 03:31:46AM -0400, ravi varma wrote:
> Hi 
> 
> RIght now i am testing PPP communication between two PC'S by doing 
> 
> pppd /dev/ser1 115200 ip1:ip2 on command line ..or else keep the same statement in string and call system(string) ..so
 that affect is same.
> 
> I want to know other approcahes of enabling PPPd Other than from command line and system command.

There's the spawn() family of libc calls.  I'm not sure
I understand the question...

-seanb
RE: Running PPPD daemon  
I think his last sentence is saying he wants to know the utilities that
invoke pppd other than through command line. 

If you are running photon, there is a utility called "phlip". Simply run
the phlip, a networking configuration window pops up and at its
connection page, you can add a new connection method and choose the Type
of Serial and the device and then do the rest accordingly. The phlip
will invoke pppd according to your configuration. 

As you said you are testing the ppp communcation, I think you'd better
contiune to use the way of command line as this way gives you the full
control of configuration. 

Thanks.
Weijie

-----Original Message-----
From: Sean Boudreau [mailto:community-noreply@qnx.com] 
Sent: April 23, 2009 9:08 AM
To: general-networking
Subject: Re: Running PPPD daemon

On Thu, Apr 23, 2009 at 03:31:46AM -0400, ravi varma wrote:
> Hi 
> 
> RIght now i am testing PPP communication between two PC'S by doing 
> 
> pppd /dev/ser1 115200 ip1:ip2 on command line ..or else keep the same
statement in string and call system(string) ..so that affect is same.
> 
> I want to know other approcahes of enabling PPPd Other than from
command line and system command.

There's the spawn() family of libc calls.  I'm not sure
I understand the question...

-seanb

_______________________________________________
General
http://community.qnx.com/sf/go/post27870
RE: Running PPPD daemon  
Or maybe "how do I automatically start it up" (as in putting the command
in something like rc.local).   

So many interpretations :>.

	R.

-----Original Message-----
From: Weijie Zhang [mailto:community-noreply@qnx.com] 
Sent: Thursday, April 23, 2009 9:42 AM
To: general-networking
Subject: RE: Running PPPD daemon

I think his last sentence is saying he wants to know the utilities that
invoke pppd other than through command line. 

If you are running photon, there is a utility called "phlip". Simply run
the phlip, a networking configuration window pops up and at its
connection page, you can add a new connection method and choose the Type
of Serial and the device and then do the rest accordingly. The phlip
will invoke pppd according to your configuration. 

As you said you are testing the ppp communcation, I think you'd better
contiune to use the way of command line as this way gives you the full
control of configuration. 

Thanks.
Weijie

-----Original Message-----
From: Sean Boudreau [mailto:community-noreply@qnx.com]
Sent: April 23, 2009 9:08 AM
To: general-networking
Subject: Re: Running PPPD daemon

On Thu, Apr 23, 2009 at 03:31:46AM -0400, ravi varma wrote:
> Hi
> 
> RIght now i am testing PPP communication between two PC'S by doing
> 
> pppd /dev/ser1 115200 ip1:ip2 on command line ..or else keep the same
statement in string and call system(string) ..so that affect is same.
> 
> I want to know other approcahes of enabling PPPd Other than from
command line and system command.

There's the spawn() family of libc calls.  I'm not sure I understand the
question...

-seanb

_______________________________________________
General
http://community.qnx.com/sf/go/post27870


_______________________________________________
General
http://community.qnx.com/sf/go/post27877
Re: RE: Running PPPD daemon  
Hi 

I am looking at starting pppd from an applicaition, so i am trying on the spawn suggestion ..but when i gone throguh 
pppd docuemntation it says .. 

" If you spawn pppd from another program and specify the nodetach or updetach option, and if a signal is dropped on pppd
 while it's running a connect or disconnect script, pppd raises the signal on the entire process group, including the 
parent (i.e. the program that spawned pppd). This could cause the parent to terminate unexpectedly "

through command line i am using 
pppd /dev/ser1 115200 ip1:ip2 debug updetach ... so 

1. when i spawncan i not use updetach ?
2. Also let me know the method/code through which i can sfaely terminate from my parent process in case ppp 
communciation fails.

Thanks
Ravi 



> Or maybe "how do I automatically start it up" (as in putting the command
> in something like rc.local).   
> 
> So many interpretations :>.
> 
> 	R.
> 
> -----Original Message-----
> From: Weijie Zhang [mailto:community-noreply@qnx.com] 
> Sent: Thursday, April 23, 2009 9:42 AM
> To: general-networking
> Subject: RE: Running PPPD daemon
> 
> I think his last sentence is saying he wants to know the utilities that
> invoke pppd other than through command line. 
> 
> If you are running photon, there is a utility called "phlip". Simply run
> the phlip, a networking configuration window pops up and at its
> connection page, you can add a new connection method and choose the Type
> of Serial and the device and then do the rest accordingly. The phlip
> will invoke pppd according to your configuration. 
> 
> As you said you are testing the ppp communcation, I think you'd better
> contiune to use the way of command line as this way gives you the full
> control of configuration. 
> 
> Thanks.
> Weijie
> 
> -----Original Message-----
> From: Sean Boudreau [mailto:community-noreply@qnx.com]
> Sent: April 23, 2009 9:08 AM
> To: general-networking
> Subject: Re: Running PPPD daemon
> 
> On Thu, Apr 23, 2009 at 03:31:46AM -0400, ravi varma wrote:
> > Hi
> > 
> > RIght now i am testing PPP communication between two PC'S by doing
> > 
> > pppd /dev/ser1 115200 ip1:ip2 on command line ..or else keep the same
> statement in string and call system(string) ..so that affect is same.
> > 
> > I want to know other approcahes of enabling PPPd Other than from
> command line and system command.
> 
> There's the spawn() family of libc calls.  I'm not sure I understand the
> question...
> 
> -seanb
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post27870
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post27877


RE: RE: Running PPPD daemon  
You can avoid this by spawn with set of SPAWN_SETGROUP. 

Thanks
Weijie

-----Original Message-----
From: ravi varma [mailto:community-noreply@qnx.com] 
Sent: April 23, 2009 10:13 AM
To: general-networking
Subject: Re: RE: Running PPPD daemon

Hi 

I am looking at starting pppd from an applicaition, so i am trying on
the spawn suggestion ..but when i gone throguh pppd docuemntation it
says .. 

" If you spawn pppd from another program and specify the nodetach or
updetach option, and if a signal is dropped on pppd while it's running a
connect or disconnect script, pppd raises the signal on the entire
process group, including the parent (i.e. the program that spawned
pppd). This could cause the parent to terminate unexpectedly "

through command line i am using 
pppd /dev/ser1 115200 ip1:ip2 debug updetach ... so 

1. when i spawncan i not use updetach ?
2. Also let me know the method/code through which i can sfaely terminate
from my parent process in case ppp communciation fails.

Thanks
Ravi 



> Or maybe "how do I automatically start it up" (as in putting the
command
> in something like rc.local).   
> 
> So many interpretations :>.
> 
> 	R.
> 
> -----Original Message-----
> From: Weijie Zhang [mailto:community-noreply@qnx.com] 
> Sent: Thursday, April 23, 2009 9:42 AM
> To: general-networking
> Subject: RE: Running PPPD daemon
> 
> I think his last sentence is saying he wants to know the utilities
that
> invoke pppd other than through command line. 
> 
> If you are running photon, there is a utility called "phlip". Simply
run
> the phlip, a networking configuration window pops up and at its
> connection page, you can add a new connection method and choose the
Type
> of Serial and the device and then do the rest accordingly. The phlip
> will invoke pppd according to your configuration. 
> 
> As you said you are testing the ppp communcation, I think you'd better
> contiune to use the way of command line as this way gives you the full
> control of configuration. 
> 
> Thanks.
> Weijie
> 
> -----Original Message-----
> From: Sean Boudreau [mailto:community-noreply@qnx.com]
> Sent: April 23, 2009 9:08 AM
> To: general-networking
> Subject: Re: Running PPPD daemon
> 
> On Thu, Apr 23, 2009 at 03:31:46AM -0400, ravi varma wrote:
> > Hi
> > 
> > RIght now i am testing PPP communication between two PC'S by doing
> > 
> > pppd /dev/ser1 115200 ip1:ip2 on command line ..or else keep the
same
> statement in string and call system(string) ..so that affect is same.
> > 
> > I want to know other approcahes of enabling PPPd Other than from
> command line and system command.
> 
> There's the spawn() family of libc calls.  I'm not sure I understand
the
> question...
> 
> -seanb
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post27870
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post27877




_______________________________________________
General
http://community.qnx.com/sf/go/post27883