From owner-freebsd-questions Fri Jul 2 9:32:10 1999 Delivered-To: freebsd-questions@freebsd.org Received: from imap0.glue.umd.edu (imap0.glue.umd.edu [128.8.10.158]) by hub.freebsd.org (Postfix) with ESMTP id DD4C315732 for ; Fri, 2 Jul 1999 09:28:34 -0700 (PDT) (envelope-from bfoz@glue.umd.edu) Received: from glue.umd.edu (ppp-27-191.tidalwave.net [208.220.27.191]) by imap0.glue.umd.edu (8.9.3/8.9.3) with ESMTP id MAA03045 for ; Fri, 2 Jul 1999 12:28:28 -0400 (EDT) Message-ID: <377CE7C9.3E6CC193@glue.umd.edu> Date: Fri, 02 Jul 1999 12:24:41 -0400 From: Brandon Fosdick X-Mailer: Mozilla 4.6 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: questions@freebsd.org Subject: Script to make ppp hangup? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I want to make a script that runs 'ppp -background' then fetchmail and then tells ppp to hangup. Currently the only way I know how to make a background ppp process disconnect is by using kill, but ppp doesn't leave its pid anywhere (that I can find) so I don't know how the script will know what process to kill. Is there another way to do this? Thanks, Brandon -- bfoz@glue.umd.edu "Lead, follow, or get run over" "In life there are those who steer, and those who push" "I'm not impatient, the world is too slow" "Life is short, so have fun, play hard, and leave a good looking corpse" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message