Can anyone tell me what this might do?
It's in my cron commands and set to execute as root.Code:[ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm
Printable View
Can anyone tell me what this might do?
It's in my cron commands and set to execute as root.Code:[ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm
Basically, if /var/lib/php5 exsits, and any files in that directory were created recently, it runs the files. I'm not sure what purpose it has. That cron script seems to be installed by the php5-common package.
Hrm. Does that really need to run as root? I guess it might if it's the PHP binaries.
Sorry, it doesn't run the file if it's new, it deletes the file if it's old. Garbage collection, cleaning old sessions.
http://oscarm.org/news/detail/666-de...age_collection
Code:man test
man find
man xargs
Thank you.