Re: Disconnection command?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Unruh wrote:
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?

killall pppd

I'll be /really/ pedantic and say...

For ppp0
kill SIGHUP `cat /var/run/ppp0.pid`

For ppp1
kill SIGHUP `cat /var/run/ppp1.pid`

etc

FWIW, you can substitute -SIGTERM or -SIGINT for -SIGHUP



- --
Lew Pitcher

Master Codewright & JOAT-in-training | GPG public key available on request
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFERutuagVFX4UWr64RAmKIAKCGW4D39E3j4g6Gviih8rM2Wd5NIACeNGIQ
Ch4w9KB+Lc0T4VKKigztEG0=
=VtNv
-----END PGP SIGNATURE-----
.



Relevant Pages

  • Re: Disconnection command?
    ... Lew Pitcher writes: ... other Linux distributions don't have 'pon' and 'poff': ... then I connect with 'pppd call my_provider', ...
    (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?
    ... 'pon' and 'poff' respectively. ... other Linux distributions don't have 'pon' and 'poff': ... then I connect with 'pppd call my_provider', ...
    (comp.protocols.ppp)
  • 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 ... Then I have to switch off the phone and switch it on again, ... install Emacs cvs and Gnus cvs under Debian yet. ...
    (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)