Cron Jobs Ouputting Meta Refresh Strings

More odd cron behaviors that may be related to the hosting environment.

Addons that are run in the admin context from by myself and Simtech Dev are generating output when run from cron of:


and


The same commands run from the command line in an SSH window do not generate the meta refresh.

Something is causing cs-cart to do a fn_redirect() where the meta string is output. A backtrace generated just before the fn_echo() of the meta tag is:

Array
(
    [0] => Array
        (
            [file] => /home/modest20/public_html/app/functions/fn.control.php
            [line] => 329
            [function] => fn_redirect
            [args] => Array
                (
                    [0] => https://modestiq.com/modestpanel.php?_%2Fmodestpanel_php=&--dispatch=ez_shopify_cron.update_stores&--cron_password=multipass
                )
    )

[1] => Array
    (
        [file] => /home/modest20/public_html/modestpanel.php
        [line] => 27
        [function] => fn_dispatch
        [args] => Array
            (
            )

    )

)

I found that 'CONSOLE' is not being defined. Seems that Bootstrap.php has code to check if PHP_SAPI is set to 'cli' and if so, defines CONSOLE and then all the other stuff will work okay. So I've asked the hosting company for a PHP command to use in cron that will behave the same as php executed from a shell prompt (but have very low expectations).
Anyone else seen and addressed this issue? If I use ea-php72 instead of php, it generates a warning about tyring to do an ini_set but then also outputs the meta tag and exits...
So frustrating to have to debug this stuff....