[kill_cnpkmodule] pour la compatibilité avec etch

on laisse volontairement le code obscur

darcs-hash:20090722232841-bd074-f2c035f562f0b8cb622ec5287ebbb7c6423e465d.gz
This commit is contained in:
Antoine Durand-Gasselin 2009-07-23 01:28:41 +02:00
parent 4a4dc29527
commit 569e0172c0

View file

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