Quote:perhaps not so elegant, but you can write that in the cron controller as `my_is_cli()` and call it in the construct.
Problem is that the cronjob won't load my cron controller unless CI knows it's a CLI request in an earlier stage.
Besides that, the session library calls the is_cli() function.
Is it possible to load my own is_cli() function
before the one in system/core/common.php is loaded?