scripts/impression/kill_cnpkmodule
Antoine Durand-Gasselin 569e0172c0 [kill_cnpkmodule] pour la compatibilité avec etch
on laisse volontairement le code obscur

darcs-hash:20090722232841-bd074-f2c035f562f0b8cb622ec5287ebbb7c6423e465d.gz
2009-07-23 01:28:41 +02:00

2 lines
143 B
Bash
Executable file

#!/bin/sh
ps aux | grep cnpkmodule | perl -nle '/[^\s]*\s*(\d*)\s*([^\s]*\s*){7}(\d*)/; if ($3 > 60) {kill $1; print "cnpkmodule was killed"}'