how to terminate pppd automatically - PPP

This is a discussion on how to terminate pppd automatically - PPP ; A command "pppd call gprs" is issued to start the pppd for accessing net. Later it is terminated manually by pressing CTRL+C. Now i want to do it automatically or through scripting. So how do i achieve it for attaining ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: how to terminate pppd automatically

  1. how to terminate pppd automatically

    A command "pppd call gprs" is issued to start the pppd for accessing
    net.
    Later it is terminated manually by pressing CTRL+C.

    Now i want to do it automatically or through scripting.
    So how do i achieve it for attaining gracefull termination.

    Thanks
    Vikrant


  2. Re: how to terminate pppd automatically

    In article <1116485128.954466.150060@g47g2000cwa.googlegroups. com>, vicks wrote:
    > So how do i achieve it for attaining gracefull termination.


    Search for SIGHUP and SIGTERM in the pppd manual pages and send the
    signal of your choice with kill, man kill for details.

    -Mikko

  3. Re: how to terminate pppd automatically

    vicks wrote:
    > A command "pppd call gprs" is issued to start the pppd for accessing
    > net.
    > Later it is terminated manually by pressing CTRL+C.


    > Now i want to do it automatically or through scripting.
    > So how do i achieve it for attaining gracefull termination.


    Check man pppd to see if the pppd options "lcp-echo-failure n" and
    "lcp-echo-interval n" are suitable. Be aware that a cell-phone
    (?) PPP implementation may not support Echo-Reply, contrary to RFC
    1661 which says

    Upon reception of an Echo-Request in the LCP Opened state, an
    Echo-Reply MUST be transmitted.

    There is also the "idle n" option used to terminate the link after n
    seconds of inactivity. But this may require using the active-filter
    option to prevent unwanted access attempts from resetting the idle
    timer and keeping the connection up.

    As already described, manual termination with the kill (or killall)
    program with -HUP or -TERM should work.

    --
    Clifford Kite Email: "echo xvgr_yvahk-ccc@ri1.arg|rot13"
    PPP-Q&A links, downloads: http://ckite.no-ip.net/
    /* For every credibility gap, there is a gullibility fill.
    -- R. Clopton */

  4. Re: how to terminate pppd automatically

    "vicks" writes:

    >A command "pppd call gprs" is issued to start the pppd for accessing
    >net.
    >Later it is terminated manually by pressing CTRL+C.


    >Now i want to do it automatically or through scripting.
    >So how do i achieve it for attaining gracefull termination.


    killall pppd

    (And yes, that is exactly right for graceful termination.)


+ Reply to Thread