Return to BSD News archive
Newsgroups: comp.unix.bsd.freebsd.misc Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nexus.coast.net!simtel!noc.netcom.net!netcom.com!kientzle From: kientzle@netcom.com Subject: Auto-killing slattach? Message-ID: <kientzleDAJ8zB.FHo@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Wed, 21 Jun 1995 17:09:11 GMT Lines: 12 Sender: kientzle@netcom6.netcom.com I've cobbled together a Kermit script that dials up my local ISP and starts up slattach. The annoying point is that when I hang up (with Kermit), slattach is left running, and has to be killed manually. Is there an easy way to have slattach die when the carrier drops? (I've considered writing a Perl script to search /var/log/messages for the `dropped carrier' message from slattach so it can get the PID and kill slattach, but that seems like overkill.) - Tim Kientzle P.S. I'm still using 2.0R if it makes a difference.