Search Results

Search: Posts Made By: Valkov
2,063
Posted By Valkov
I tried it with -a -o but it gzipped everything,...
I tried it with -a -o but it gzipped everything, not only .trc files:

find . -xdev -name "*.trm" -type f -mtime +5 -a -exec !fuser -s {} ';' -o -exec gzip -9f {} ';'

I am doing something wrong...
2,063
Posted By Valkov
Sorry, I forgot to mention it's HP UX
Sorry, I forgot to mention it's HP UX
2,063
Posted By Valkov
Some help with a find/fuser/gzip crontab job
Hello,

I am trying to write a housekeeping that finds all .trc files older than x days in a given FS, checks if they are used and gzips them if they are not used by any process. I need to do it...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 06:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy