[kill_cnpkmodule] pour eviter que les impression ratees fassent choucrouter zamok
darcs-hash:20090722162158-bd074-96aacee57b6b8fc06aa8b1aad7dd41852b1a4dae.gz
This commit is contained in:
parent
81299a838f
commit
4a4dc29527
1 changed files with 2 additions and 0 deletions
2
impression/kill_cnpkmodule
Executable file
2
impression/kill_cnpkmodule
Executable 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"}'
|
Loading…
Add table
Add a link
Reference in a new issue