How to run delete-campaigns not interactively?

Lakjin

Active Member
I want to be able to run a cron that deletes campaigns. How do I run the delete-campaigns command non-interactively?
 
I want to be able to run a cron that deletes campaigns. How do I run the delete-campaigns command non-interactively?
This command can't be run from crons because this will require some additional confirmations before to run.
 
Last edited:
As @laurentiu this will not work as it requires confirmation.... However, there's a way to automatically answer with "yes" to all those confirmation messages. Pipe your command to the yes command in linux, that is:
Code:
yes | /usr/bin/php -q ...apps/console/console.php delete-campaigns ...
 
As @laurentiu this will not work as it requires confirmation.... However, there's a way to automatically answer with "yes" to all those confirmation messages. Pipe your command to the yes command in linux, that is:
Code:
yes | /usr/bin/php -q ...apps/console/console.php delete-campaigns ...
thanks
 
Back
Top