Nikolai086
IS-IT--Management
there is on script, and it inclueds a command
find . ! -name "*.Z" -mtime +1 |xargs -I{} compress {} 2>/dev/null
As there are a lot of files will be found out, more than 20000, this script will be run every half an hour, but someday I received a warning, the find command use 20% CPU
#ps -ef |grep find
root 32202 44070 106 16:35:24 - 1270:26 find . ! -name *.Z -mtime +1
>_<|||
Then I have to kill it, I think it's the find command's wrong.
Does any advice? how can I modify it so that resolve it forever.
Thank you!
--
Best Regards!
Hello, I am Nikolai NG, come from Carton, China. I love here.
find . ! -name "*.Z" -mtime +1 |xargs -I{} compress {} 2>/dev/null
As there are a lot of files will be found out, more than 20000, this script will be run every half an hour, but someday I received a warning, the find command use 20% CPU
#ps -ef |grep find
root 32202 44070 106 16:35:24 - 1270:26 find . ! -name *.Z -mtime +1
>_<|||
Then I have to kill it, I think it's the find command's wrong.
Does any advice? how can I modify it so that resolve it forever.
Thank you!
--
Best Regards!
Hello, I am Nikolai NG, come from Carton, China. I love here.