mrj Posted August 22, 2017 Posted August 22, 2017 Hi,After execution, cron jobs deleted automaticaly. Can I make the job permanent and will run in every 4 min? I need delete all directory inside /home/mrj/wap/files in every 4 min.
wolstech Posted August 22, 2017 Posted August 22, 2017 Cron is limited to 2 executions a day, so no. The most you could do is a single job every 12 hours. If you put the script somewhere accessible by browser, we can set up a call to the URL that runs every 4 minutes though.
mrj Posted August 22, 2017 Author Posted August 22, 2017 Thank you. Please provide me the code script to run a php file from server in every 5 minute. I will create a php file which will execute the job for cron when runs.
wolstech Posted August 22, 2017 Posted August 22, 2017 You can't do it yourself. You need to write the PHP script you want to run, upload it somewhere in your pubilc_html, and post the URL to the script here. Once you do, I'll pass it along to the root admin so a root admin can set it up for you.
mrj Posted August 22, 2017 Author Posted August 22, 2017 Here is my PHP scripts URL: https://meraj.gq/clear_cache.php
mrj Posted August 22, 2017 Author Posted August 22, 2017 Please try again. Please try again and tell me is everthing is set up and working perfectly.
Recommended Posts