auto add clean_user_php_sessions to cron looks wrong
It looks like cpanel, (...or LAMP...) auto installed the following line into cron:
09,39 * * * * /usr/local/cpanel/scripts/clean_user_php_sessions > /dev/null 2>&1
But, it doesn't look right. 1) the second value `39` is not a valid hour and 2) it has 6 fields `09,39 * * * *` defined when cron only takes 5 fields.
Can anyone elaborate on this or explain it - it just flat out looks wrong to me.
CentOS: v7.9.2009
cPanel: 110.0.2
PHP: 7.3
-
09,39 means minutes 9 and 39, i.e. twice an hour. 0 -
ah...so the `,` allows more than one value in the set of 5 fields. Thus: `09,39 0,6,12,18 * * *` would mean at 00:09, 00:39, 06:09,06:39, 12:09,12:39, 18:09,18:39 Correct? 0 -
Yes, but it would be easier like this: 09,39 */6 * * * i.e. every 6th hour. 0
Please sign in to leave a comment.
Comments
3 comments