Post by iamstevenelson » Wed May 18, 2016 5:44 pm

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.

User avatar
New member

Posts

Joined
Sat May 02, 2015 11:56 am

Post by tabook » Thu May 19, 2016 5:39 am

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

Forget complex and inconvenient stock Categories and Products in OpenCart - use Acute Category Manager +!
Ready for 1.5.x and 2.x Editions


New member

Posts

Joined
Sun Mar 01, 2015 6:27 pm

Post by iamstevenelson » Fri May 20, 2016 1:24 am

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.

User avatar
New member

Posts

Joined
Sat May 02, 2015 11:56 am
Who is online

Users browsing this forum: No registered users and 319 guests