console, shell and cronjob