[kill_cnpkmodule] pour eviter que les impression ratees fassent choucrouter zamok

darcs-hash:20090722162158-bd074-96aacee57b6b8fc06aa8b1aad7dd41852b1a4dae.gz
This commit is contained in:
Antoine Durand-Gasselin 2009-07-22 18:21:58 +02:00
parent 81299a838f
commit 4a4dc29527

2
impression/kill_cnpkmodule Executable file
View file

@ -0,0 +1,2 @@
#!/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"}'