Re: (root) cmd /usr/lib/php5/maxlifetime



on Tue, 30 Jan 2007 11:22:44 +0100, Andreas Duffner
<NewsgroupTOnline.NoSpam.Duffner@xxxxxxxxxxxxxxx> wrote this wisdom:

Hi.
Today I found in my syslog the following:

(root) CMD ( [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin
+$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm)


Seems like it starts with testing if the directory /var/lib/php5 exists
That is what
[ -d /var/lib/php5 ]
is doing

and if so executes the find command afterwards which looks for files only where
the cmin age is greater than $(/usr/lib/php5/maxlifetime)

then it deletes them.

Looks like simple housekeeping.

--
Simon.

'Be Seeing You.
Who is number one?
I will not be pushed, filed, stamped, indexed, briefed, de-briefed or numbered.
Registered Linux User #300464 Machine Id #188886
Linux Counter - http://counter.li.org/
Remove the s.p.a.m to reply
.