Clorange: almost functional draft (promotions, capture non-violent...)
[xogo.git] / stop.sh
CommitLineData
41534b92
BA
1#!/bin/sh
2
3# https://stackoverflow.com/questions/13939038/how-do-you-run-a-command-for-each-line-of-a-file
0e466aac
BA
4while read pid; do
5 kill -9 -`ps p $pid -o pgid | grep "[0-9]\+" | tr -d " "`
6done <.pid