Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nexus.coast.net!news.kei.com!news.mathworks.com!solaris.cc.vt.edu!fox!yzalkow From: yzalkow@fox.ee.vt.edu (Yuval Zalkow) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Auto-killing slattach? Date: 23 Jun 1995 21:02:20 GMT Organization: Virginia Tech, Blacksburg, Virginia Lines: 28 Message-ID: <3sfa4t$n32@solaris.cc.vt.edu> References: <kientzleDAJ8zB.FHo@netcom.com> <3sbiuf$t73@bonnie.tcd-dresden.de> NNTP-Posting-Host: fox.ee.vt.edu X-Newsreader: TIN [version 1.2 PL2] J Wunsch (j@bonnie.heep.sax.de) wrote: : <kientzle@netcom.com> wrote: : >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? : Slattach normally catches the SIGHUP and tries to redial. You can : provide it with a command used for redialing (option -r), and nobody : says that you cannot use this command in order to kill slattach off. : -- : cheers, J"org private: joerg_wunsch@uriah.heep.sax.de : http://www.sax.de/~joerg/ : Never trust an operating system you don't have sources for. ;-) and an easy command to kill it is something like this: kill `ps -aux | grep slattach | grep -v grep | cut -c10-14` This works by the way, so I guess if you add this to the "-r" on slattach, it should do what you want. Chris Inacio -------------------------- cinacio@vt.edu