On 15-Oct-2000 Kevin Diffily spoke something to the effect:
> I have been unable to create a simple program that will kill a
> running ppp connection. I have tried
> cat /var/run/ppp0|kill
> echo /var/run/ppp0|kill
> kill<cat /var/run/ppp0
> etc.
>
> Any help will be appreciated.
Here's one that will work if using demand dial. The separate pppd and
ppp-watch entry are needed because they won't automatically get killed with
the link. Also, killing them alone will still leave ppp0 running.
-------CUT HERE -------
#!/bin/bash
killall pppd ppp-watch
ifconfig ppp0 down
------ CUT HERE -------
The ppp-watch part is used on RH6.2. I don't know for 6.1 or 7.0 and I
don't recollect it being used on 5.2 and before.
I originally had problems when using demand dial when I'd kill the ppp
session and not ppp-watch. It kept bringing the link back up.
Execution by root is necessary (obviously) and don't forget the permissions.
If not using demand dial:
-------CUT HERE-------
#!/bin/bash
ifconfig ppp0 down
------CUT HERE-------
will suffice. But doing it manually will do it also.
--
A man is as old as the woman he feels.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list