Tripwire Report Purge

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have put this in crontab to purge my old tripwire reports. 

# check for tripwire reports files and delete old ones
0 3 * * * root find  /var/lib/tripwire/report -daystart -type f -mtime -90
-mtime +29 | xargs -r rm


I have a global alias set for rm = "rm -i" which works if I do a rm filename.
Set in /etc/profile. 

However, if I run find  /var/lib/tripwire/report -daystart -type f -mtime -90
-mtime +29 | xargs -r rm from a terminal, no interactive prompt occurs.

I have read the xargs man, but did not see anything about xargs overriding
global aliases. 

It nice that it does not prompt since it is being run out of crontab. Yet, I
was surprised not to see a delete prompt when testing. 

Is this correct?

Thanks, Mike.



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux