This command can't be run from crons because this will require some additional confirmations before to run.I want to be able to run a cron that deletes campaigns. How do I run the delete-campaigns command non-interactively?
Will not work because this command will require additional confirmations before to run.Will that work? I thought the command is interactive and requires input?
yes | /usr/bin/php -q ...apps/console/console.php delete-campaigns ...
thanksAs @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 ...