Example
codex exec "Summarise yesterday's error log in /var/log/app.log"
Useful inside automations, for example a nightly check that posts its summary to Telegram.
Run Codex non-interactively from a script or cron job: one prompt in, result out.
codex exec "Summarise yesterday's error log in /var/log/app.log"
Useful inside automations, for example a nightly check that posts its summary to Telegram.