From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] stopping sleep and aux/listen From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20001228093358.422FB199F4@mail.cse.psu.edu> Date: Thu, 28 Dec 2000 04:33:50 -0500 Topicbox-Message-UUID: 3e0d011e-eac9-11e9-9e20-41e7f4b1d025 while (){ lc /n/ftp >> templog sleep 300 }& You can't kill this except by killing the rc that is running the while loop. Better to put it into a script pingftp and then kill pingftp|rc. To kill off the listeners, try this: term% cat /rc/bin/Kill #!/bin/rc ps | sed -n 's%^[^ ]* *([^ ]*) *[^ ]* *[^ ]* *[^ ]* *[^ ]* *'$1'%chmod 666 /proc/\1/ctl;echo kill > /proc/\1/ctl%p' term% It's like slay but for any process, not just those owned by you. Also at http://plan9.bell-labs.com/~rsc/Kill if the line gets mangled (that's one line not counting #!/bin/rc). Russ