Hello
Can someone help me on cronjob command which deletes error.txt file located here /public_html/system/logs/error.txt everyday once.
Thank you.
Perhaps my answer may seem strange, but solving the problems with the store lead the error file will be always empty?
PS:
<?php
unlink('path/to/file');
Cron:
40 5 * * * /your/command/with/php/script
Every day 5:40 AM
PS:
<?php
unlink('path/to/file');
Cron:
40 5 * * * /your/command/with/php/script
Every day 5:40 AM
Forget complex and inconvenient stock Categories and Products in OpenCart - use Acute Category Manager +!
Ready for 1.5.x and 2.x Editions
Hi Tabook,
Thanks for your reply. I require a cronjob command which deletes error.txt file daily. This file is auto generated whenever we load the website. so deleting them is not a problem.
Thanks for your reply. I require a cronjob command which deletes error.txt file daily. This file is auto generated whenever we load the website. so deleting them is not a problem.
Who is online
Users browsing this forum: No registered users and 319 guests