mrj Posted August 22, 2017 Share 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. Link to comment Share on other sites More sharing options...
wolstech Posted August 22, 2017 Share 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. Link to comment Share on other sites More sharing options...
mrj Posted August 22, 2017 Author Share 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. Link to comment Share on other sites More sharing options...
wolstech Posted August 22, 2017 Share 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. Link to comment Share on other sites More sharing options...
mrj Posted August 22, 2017 Author Share Posted August 22, 2017 Here is my PHP scripts URL: https://meraj.gq/clear_cache.php Link to comment Share on other sites More sharing options...
Krydos Posted August 22, 2017 Share Posted August 22, 2017 That url gives a 404 error. Link to comment Share on other sites More sharing options...
mrj Posted August 22, 2017 Author Share Posted August 22, 2017 Please try again. Please try again and tell me is everthing is set up and working perfectly. Link to comment Share on other sites More sharing options...
Krydos Posted August 22, 2017 Share Posted August 22, 2017 External cron created. 1 Link to comment Share on other sites More sharing options...
mrj Posted August 22, 2017 Author Share Posted August 22, 2017 Thank you Link to comment Share on other sites More sharing options...
Recommended Posts