corey34
Active Member
I'm trying to run the tablecleaner command with a cron but the command forces a double prompt before deleting records. Is there a way to stop the double prompt so I can have this run on it's own?
Here's the command with the prompt's and output:
>/bin/php -q /home/.../public_html/apps/console/console.php table-cleaner --table=mw_campaign_url --time="-2 month"
Are you sure you want to delete the records from the "mw_campaign_url" table that are older than "2017-04-30 21:29:25" date? (yes|no) [no]:y
This action will delete 17688537 records from the "mw_campaign_url" table. Proceed? (yes|no) [no]:y
DONE, took 1152.8297 seconds!
Here's the command with the prompt's and output:
>/bin/php -q /home/.../public_html/apps/console/console.php table-cleaner --table=mw_campaign_url --time="-2 month"
Are you sure you want to delete the records from the "mw_campaign_url" table that are older than "2017-04-30 21:29:25" date? (yes|no) [no]:y
This action will delete 17688537 records from the "mw_campaign_url" table. Proceed? (yes|no) [no]:y
DONE, took 1152.8297 seconds!