Try

kill `cat /var/run/ppp0.pid`  <--- Note the quotes...

Bruce.



>    killall -HUP will redial the connection.  killall -9 pppd should kill the
> connection. To dial on boot, put your
> exec pppd connect 'chat -f -v /etc/ppp/chatscript' ..... /dev/modem 57600 in
> /etc/rc.d/rc.local or similar boot up script.
>
> -----Original Message-----
> From: Bill Sneed <[EMAIL PROTECTED]>
> To: Jack Barnett R <[EMAIL PROTECTED]>
> Cc: Michael Stearne <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
> <>
> Date: Monday, February 22, 1999 5:42 PM
> Subject: Re: How Do I hang Up?
>
>
>>Jack Barnett R wrote:
>>>
>>> >
>>> > I recently got my PPP Connection working on an HP Omnibook with a PC
>>> > Card modem.  The connection works fine and everything but I don't know
>>> > how to hang up correctly. Right now to connect I say:
>>> >
>>> > exec pppd connect 'chat -f -v /etc/ppp/chatscript' ..... /dev/modem
>>> > 57600
>>> >
>>> > This connection is fine but I don't know how to hang up the connection
>>> > when I am finished with it.
>>> >
>>> > something like "pppd disconnect 'chat -f -v /etc/ppp/chatscriptoff'
>>> > ....." ?
>>> >
>>> > Also this leads to another question if I have a special init string for
>>> > the modem where do I put that when dialing in the chatscript or is
> there
>>> > a better place in the to do this?
>>> >
>>> >
>>> > Finally, how can I set it up so that the connect is started at boot up?
>>> > Before log in if possible, or after root log in if necessary?
>>> >
>>> > Thanks,
>>> > Michael Stearne
>>> >
>>> >
>>> > -
>>> > To unsubscribe from this list: send the line "unsubscribe linux-net" in
>>> > the body of a message to [EMAIL PROTECTED]
>>> >
>>>
>>> I don't know if this would be the correct way to do this, but hey it
> works
>>> in a half assed way.
>>>
>>> to kill my connect I just type 'killall pppd' at the command line, it
>>> kills my connect and I hear the modem 'click' shut
>>>
>>
>>I was taught killall -HUP pppd but have no idea why!  Never have found
>>an explanation of when to use what SIGs for what processess.
>>
>>Enlightenment welcome ....
>>
>>....Bill Sneed, Porspect, Maine....
>>
>>-
>>To unsubscribe from this list: send the line "unsubscribe linux-net" in
>>the body of a message to [EMAIL PROTECTED]
>>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to