# Cron job failure alerts to iPhone

Use Nerve when cron jobs, backups or scheduled server scripts should send encrypted failure alerts to iPhone with a credential that can only send.

```sh
export NERVE_DSN="nerve://TOKEN:SENDER_KEY@api.nerve.ink"
/opt/jobs/backup.sh || echo "backup failed on $(hostname)" | nerve send --severity critical --title "Backup failed"
```
