SOLVED How to create a cron job? Beginner

googol8080

Active Member
Sep 28, 2016
38
2
8
Philippines
cPanel Access Level
Website Owner
I want to create a cron job that can do a Session Garbage Collection, and it is recommended by php.net, here is the page from php.net (EXAMPLE #1) PHP: session_gc - Manual. I don't have a good knowledge about Linux's commands.

Please help me, I need it, thanks.


EDIT: In Cron Jobs - Documentation - cPanel Documentation, where do I put >/dev/null 2>&1 ? Before or after the php script?
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
Hello,

I'm happy to see you were able to find an answer to your question. Let us know if you have any additional questions.

Thanks!