For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > November 2006 > Re: fork to create ppp link !!!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: fork to create ppp link !!!
sumit1680@rediffmail.com

2006-11-21, 8:01 am


Rainer Temme wrote:
> sumit1680@rediffmail.com wrote:
>
>
>
>
>
> If you don't see the pppd process in the process list, and instead see
> a zombie, it's an indication that the pppd you invoced has been
> unhappy (with its parameters for instance) and has already terminated.
>
> You might check, if you can switch debugging on (in the pppd) to get
> more information.
>
> Just a thought ... is it possible, that you pass more than one
> parameters in the 'file' variable, or in the string "<a unique file >" ?


well ! soory that was a typo there !!! file should be within double
codes too. it a directive to pppd to read arguments from the name of
file following.
So more aptly the call is like
execlp("/usr/sbin/pppd","115200","file","< file_name >",NULL);
>
> Should that be the case, split it into separate params...
> $ program a b c
> is something different than
> $ program "a b c"
> pppd will likely expect all parameters as distinct arguments in
> his argument list.
>
> Rainer


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com