help

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Corey Tyree
Date:  
Subject: help



Send PLUG-discuss mailing list submissions to
    


To subscribe or unsubscribe via the World Wide Web, visit
    http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
or, via email, send a message with subject or body 'help' to
    


You can reach the person managing the list at
    


When replying, please edit your Subject line so it is more specific
than "Re: Contents of PLUG-discuss digest..."


Today's Topics:

    1. Re: another openbsd -> ppp (Jeremy C. Reed)


--__--__--

Message: 1
Date: Mon, 30 Jun 2003 11:10:49 -0700 (PDT)
From: "Jeremy C. Reed" <>
To: plug <>
Subject: Re: another openbsd -> ppp
Reply-To:

On Mon, 30 Jun 2003, Mike Starke wrote:

> And disconnecting is as easy as
> 'poff'


> Now, I do not know how to disconnect without
> killing the process. Certainly there is a more
> gracefull way than 'kill <PID>'?


Have a look at that poff script. Basically it does:
/bin/kill -TERM `pidof pppd`

pidof can be done like:
ps axc -o pid,command | awk "\$2~/^`echo $1`\$/ {print \$1}"

That poff script is so short you could rewrite (with a friendlier
license). (Or choose to just use it on your BSD box.)

    Jeremy C. Reed
    http://bsd.reedmedia.net/




--__--__--

_______________________________________________
PLUG-discuss mailing list -
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


End of PLUG-discuss Digest

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail