On 06/11/2002, 20:35 +0800, Dan Jacobson wrote:
> Hmm, this seems to stop it:
> 
> # wwwoffle -status
> WWWOFFLE Server Status
> State        : offline
> Fetch        : active (wwwoffle -fetch)
> Purge        : inactive
> Last-Online  : Tue, 11 Jun 2002 17:50:57 CST
> Last-Offline : Tue, 11 Jun 2002 18:00:21 CST
> Total-Servers: 5
> Fetch-Servers: 4
> Server-PIDs  :  1334 1491 1492 1409 1481
> Fetch-PIDs   :  1334 1491 1492 1409
> # kill -1  1334 1491 1492 1409
> 
> seems to do the job.  one could write a script i suppose :-(

one-liner is sufficient, I hope:

wwwoffle -status|awk -F: '/^Fetch-PIDs/{system("kill "$2)}'

-- 
Jacques L'helgoualc'h

Reply via email to