auto add clean_user_php_sessions to cron looks wrong

rolinger

Well-Known Member
Feb 13, 2017
55
3
58
Tampa
cPanel Access Level
Root Administrator
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
 
Last edited by a moderator:

rolinger

Well-Known Member
Feb 13, 2017
55
3
58
Tampa
cPanel Access Level
Root Administrator
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?
 

quietFinn

Well-Known Member
Feb 4, 2006
2,041
551
493
Finland
cPanel Access Level
Root Administrator
Yes, but it would be easier like this:
09,39 */6 * * *
i.e. every 6th hour.
 
  • Like
Reactions: cPRex