Re: Disconnection command?



Rodolfo Medina <rodolfo.medina@xxxxxxxxx> writes:

Under Gnu/Debian Linux, to connect and disconnect I use the commands
'pon' and 'poff' respectively.
Instead, other Linux distributions don't have 'pon' and 'poff':
then I connect with 'pppd call my_provider', but don't
know how to disconnect apart from switching off the phone.

Can you please suggest the suitable command to disconnect?


Unruh <unruh-spam@xxxxxxxxxxxxxx> writes:

killall pppd


Thanks, it works, but only under Debian; instead, with Mandrake 10.1,
if I close the connection with 'killall pppd', when I try to start it again
I get the following output:

Apr 20 13:50:31 localhost pppd[4211]: pppd 2.4.2 started by root, uid 0
Apr 20 13:50:32 localhost chat[4212]: abort on (BUSY)
Apr 20 13:50:32 localhost chat[4212]: abort on (NO CARRIER)
Apr 20 13:50:32 localhost chat[4212]: abort on (VOICE)
Apr 20 13:50:32 localhost chat[4212]: abort on (NO DIALTONE)
Apr 20 13:50:32 localhost chat[4212]: abort on (NO DIAL TONE)
Apr 20 13:50:32 localhost chat[4212]: abort on (NO ANSWER)
Apr 20 13:50:32 localhost chat[4212]: abort on (DELAYED)
Apr 20 13:50:32 localhost chat[4212]: send (ATZ^M)
Apr 20 13:50:32 localhost chat[4212]: expect (OK)
Apr 20 13:51:17 localhost chat[4212]: alarm
Apr 20 13:51:17 localhost chat[4212]: send (AT^M)
Apr 20 13:51:17 localhost chat[4212]: expect (OK)
Apr 20 13:52:02 localhost chat[4212]: alarm
Apr 20 13:52:02 localhost chat[4212]: Failed
Apr 20 13:52:02 localhost pppd[4211]: Connect script failed
Apr 20 13:52:03 localhost pppd[4211]: Exit.

.. Then I have to switch off the phone and switch it on again, and then it
works.
Unfortunately I have to use Mandrake because I don't know how to
install Emacs cvs and Gnus cvs under Debian yet.

Any suggestion?
Cheers,
Rodolfo
.



Relevant Pages

  • Re: Disconnection command?
    ... other Linux distributions don't have 'pon' and 'poff': ... if I close the connection with 'killall pppd', when I try to start it again ... You might look in /etc/ppp/ifdown in debian to see if they have some ... install Emacs cvs and Gnus cvs under Debian yet. ...
    (comp.protocols.ppp)
  • Re: Disconnection command?
    ... other Linux distributions don't have 'pon' and 'poff': ... then I connect with 'pppd call my_provider', ... kill SIGHUP `cat /var/run/ppp0.pid` ...
    (comp.protocols.ppp)
  • Re: Disconnection command?
    ... other Linux distributions don't have 'pon' and 'poff': ... know how to disconnect apart from switching off the phone. ... If you ran that 'pppd call my_provider' and the command prompt returns ...
    (comp.protocols.ppp)
  • How to get output during ppp connection?
    ... Excuse this basic question: ... commands 'pppd call' or 'pon'? ... and excuse again the basicness of my question. ...
    (comp.protocols.ppp)
  • Re: How to get output during ppp connection?
    ... pppd sends its logging output to syslog, ... >commands 'pppd call' or 'pon'? ... and the output is sent to syslog with log local2. ...
    (comp.protocols.ppp)